Comments (18)
I believe 5903a22 should fix things for you. My test environment was:
- Windows 7
- Python 2.7.6
- Node 0.12.4
- npm 2.10.1
- Atom 0.208.0
The root README.md
has been updated to call out how the setup script should be run on Windows:
python scripts\dev\setup
In particular, you should not have to run it as an administrator! In particular, I suspect it might cause other problems down the road if you do.
from nuclide.
Updated master to the latest, still not working.
START INSTALL: 2015-06-11 19:13:03.403000
Installing dependencies for Node package nuclide-node-transpiler...
Traceback (most recent call last):
File "scripts\dev\setup", line 44, in <module>
package_manager.install_dependencies(npm, include_packages_that_depend_on_atom=include_apm)
File "scripts\dev\../lib\package_manager.py", line 45, in install_dependencies
installer.install()
File "scripts\dev\../lib\package_manager.py", line 152, in install
self._do_serial_install()
File "scripts\dev\../lib\package_manager.py", line 158, in _do_serial_install
install_dependencies(config, self._npm)
File "scripts\dev\../lib\package_manager.py", line 317, in install_dependencies
npm.install(src_path, local_packages=package_config['localDependencies'], include_dev_dependencies=package_config['includeDevDependencies'])
File "scripts\dev\../lib\npm.py", line 49, in install
self._npm_install(package_root, include_dev_dependencies)
File "scripts\dev\../lib\npm.py", line 55, in _npm_install
self._execute(npm_command, cwd=package_root)
File "scripts\dev\../lib\npm.py", line 85, in _execute
output = fs.cross_platform_check_output(cmd_args, cwd=cwd, stderr=devnull)
File "scripts\dev\../lib\fs.py", line 82, in cross_platform_check_output
raise subprocess.CalledProcessError(returncode, cmd_args, output=stdout)
subprocess.CalledProcessError: Command '['npm', 'install']' returned non-zero exit status 1
from nuclide.
@milesj What happens when you run the failed npm install
command manually from the command line? I'm suspicious that npm
was installed such that you have to be an administrator to use it (or perhaps just to write to your ~/.npm
directory).
I identified some common problems people were having at #23 (comment).
from nuclide.
I use NPM/Node constantly, even before attempting to install this. I could try uninstalling and reinstalling to see if it makes a difference.
from nuclide.
For good measure, could you run git clean -xfd
first? Maybe there's some bad stuff leftover from previous attempts?
from nuclide.
I'll reopen.
from nuclide.
Still getting the same error. I have a pretty unusual setup, so I'm wondering if that's the issue. All of my programs are installed to E: instead of C:, so maybe it's a cross drive permissions issue?
Are there any logs being written that I can dig into?
Also running npm install
works fine. Just errors out because no package.json.
E:\Projects\nuclide>npm install
npm ERR! install Couldn't read dependencies
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "E:\\Programs\\nodejs\\\\node.exe" "E:\\Programs\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! path E:\Projects\nuclide\package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -4058
npm ERR! package.json ENOENT, open 'E:\Projects\nuclide\package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.
npm ERR! Please include the following file with any support request:
npm ERR! E:\Projects\nuclide\npm-debug.log
from nuclide.
Late today I updated the scripts to provide a little more info on failure.
Could you update and try again?
On Friday, June 12, 2015, Miles Johnson [email protected] wrote:
Still getting the same error. I have a pretty unusual setup, so I'm
wondering if that's the issue. All of my programs are installed to E:
instead of C:, so maybe it's a cross drive permissions issue?Are there any logs being written that I can dig into?
Also running npm install works fine. Just errors out because no
package.json.E:\Projects\nuclide>npm install
npm ERR! install Couldn't read dependencies
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "E:\Programs\nodejs\node.exe" "E:\Programs\nodejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! path E:\Projects\nuclide\package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -4058npm ERR! package.json ENOENT, open 'E:\Projects\nuclide\package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.npm ERR! Please include the following file with any support request:
npm ERR! E:\Projects\nuclide\npm-debug.log—
Reply to this email directly or view it on GitHub
#56 (comment).
from nuclide.
Also, are there any spaces in your paths???
On Friday, June 12, 2015, Michael Bolin [email protected] wrote:
Late today I updated the scripts to provide a little more info on failure.
Could you update and try again?On Friday, June 12, 2015, Miles Johnson <[email protected]
javascript:_e(%7B%7D,'cvml','[email protected]');> wrote:Still getting the same error. I have a pretty unusual setup, so I'm
wondering if that's the issue. All of my programs are installed to E:
instead of C:, so maybe it's a cross drive permissions issue?Are there any logs being written that I can dig into?
Also running npm install works fine. Just errors out because no
package.json.E:\Projects\nuclide>npm install
npm ERR! install Couldn't read dependencies
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "E:\Programs\nodejs\node.exe" "E:\Programs\nodejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! path E:\Projects\nuclide\package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -4058npm ERR! package.json ENOENT, open 'E:\Projects\nuclide\package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.npm ERR! Please include the following file with any support request:
npm ERR! E:\Projects\nuclide\npm-debug.log—
Reply to this email directly or view it on GitHub
#56 (comment).
from nuclide.
There are some spaces in my paths but none of which related to these tools. Here's both my user and system paths.
C:\Ruby193\bin;%CommonProgramFiles%\Microsoft Shared\Windows Live;C:\Users\Miles\AppData\Local\atom\bin;C:\Users\Miles\AppData\Roaming\npm
C:\ProgramData\Oracle\Java\javapath;C:\Windows\System32;E:\Programs (32)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramData\Composer\bin;C:\Program Files (x86)\git\bin;C:\Program Files (x86)\git\cmd;E:\Data\Sqlite;E:\Data\MongoDB\bin;C:\cygwin\bin;C:\cygwin64\bin;C:\Program Files\Oracle\VirtualBox;C:\Python34;C:\HashiCorp\Vagrant\bin;C:\Users\Miles\AppData\Roaming\Composer\vendor\bin;E:\Wamp\bin\php\php5.4.3;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\Miles\AppData\Local\atom\bin;C:\Python27;E:\Programs\nodejs\
from nuclide.
I believe I found the issue. Gimme a few minutes.
from nuclide.
Yeah, turned out that git wasn't in my path. That error wasn't apparent till I tried running npm install
in the nuclide-node-transpiler folder, as I assumed NPM was downloading archives, not using git. I also recently switched to SourceTree for git projects, which has a self contained git, and the old system git was removed.
Sorry about that.
Perhaps if there's a way to grab the error message from npm install
, might be useful in the future, instead of simply saying that the call failed.
from nuclide.
Ah ha, thanks! I believe there is one transitive Node dependency that is
specified by Git URI or something like that. This likely explains the
failures that others are seeing, as well. We'll fix the docs and dump the
error messages, as you suggest.
Out of curiosity, how did you choose to clone the Nuclide repo if Git isn't
on your path? Some sort of GUI?
On Friday, June 12, 2015, Miles Johnson [email protected] wrote:
Yeah, turned out that git wasn't in my path. That error wasn't apparent
till I tried running npm install in the nuclide-node-transpiler folder,
as I assumed NPM was downloading archives, not using git. I also recently
switched to SourceTree for git projects, which has a self contained git,
and the old system git was removed.Sorry about that.
Perhaps if there's a way to grab the error message from npm install,
might be useful in the future, instead of simply saying that the call
failed.—
Reply to this email directly or view it on GitHub
#56 (comment).
from nuclide.
I just re-read your post. I guess SourceTree caused the problem?
On Friday, June 12, 2015, Michael Bolin [email protected] wrote:
Ah ha, thanks! I believe there is one transitive Node dependency that is
specified by Git URI or something like that. This likely explains the
failures that others are seeing, as well. We'll fix the docs and dump the
error messages, as you suggest.Out of curiosity, how did you choose to clone the Nuclide repo if Git
isn't on your path? Some sort of GUI?On Friday, June 12, 2015, Miles Johnson <[email protected]
javascript:_e(%7B%7D,'cvml','[email protected]');> wrote:Yeah, turned out that git wasn't in my path. That error wasn't apparent
till I tried running npm install in the nuclide-node-transpiler folder,
as I assumed NPM was downloading archives, not using git. I also recently
switched to SourceTree for git projects, which has a self contained git,
and the old system git was removed.Sorry about that.
Perhaps if there's a way to grab the error message from npm install,
might be useful in the future, instead of simply saying that the call
failed.—
Reply to this email directly or view it on GitHub
#56 (comment).
from nuclide.
SourceTree uses its own Git, so cloning that is no issue. Once I started using the command line outside of SourceTree (Windows cmd prompt), Git was no longer available.
from nuclide.
FYI, it is this transitive dependency in a package.json
that causes the issue:
"jasmine-node": "git+https://github.com/kevinsawicki/jasmine-node.git#81af4f953a2b7dfb5bde8331c05362a4b464c5ef",
So npm install
doesn't normally need Git, but for this dependency, it does.
I'm updating the System Requirements to reflect this.
from nuclide.
Nice find.
Is there a way for Nuclide to include that dependency manually and avoid Git while having the package that requires it use the local one? Not sure how much customization NPM allows unlike Composer.
from nuclide.
@milesj Yes! I moved our test runner (that depends on jasmine-focused
, which depends on git+https://github.com/kevinsawicki/jasmine-node.git#81af4f953a2b7dfb5bde8331c05362a4b464c5ef
) into a new nuclide-jasmine
package, which is now listed under devDependencies
in all of our package.json
files as of 33ffc40.
If you use npm install --production
, it will not try to install devDependencies
. This is good for end-users because apm install
calls npm install --production
. However, we assume that developers are trying to develop, so we don't want to exclude devDependencies
when npm install
is called from ./scripts/dev/setup
.
So I'm not sure if this fixes things for you in the developer case, but it will fix things for users who install the prebuilt packages via Atom and do not have Git on their $PATH
.
from nuclide.
Related Issues (20)
- Fail to load nuclide package. Cannot find module 'fb-appsession-observer' HOT 5
- apm install [email protected] not working
- nuclide-js-imports-server/nuclide-js-imports-client doesn't work HOT 1
- Nuclide 0.360.0 update doesn't work HOT 5
- I have try to install nuclide package. after that i got this issue HOT 1
- Is Nuclide-definition-preview supposed to be working with remote Nuclide server?
- where do I disable this git coloring ?
- Output from Eslint missing HOT 7
- [Ubuntu] Flow was not found when attempting to start it in
- CMake C project and compile_commands.json
- Uncaught TypeError: Cannot read property 'children' of undefined
- nuclide-buck unable to find @accent-text-color HOT 6
- Failed to load the nuclide-buck package HOT 2
- Spotty Remote Connection
- Uncaught TypeError: Cannot read property 'bind' of undefined
- Uncaught Error: Connection Closed
- `atom .` doesn't work w/ v366 terminal
- No Typechecking in Fresh Install of Nuclide + Hack HOT 2
- [email protected] – Cannot find module se.node' HOT 2
- Uncaught RpcTimeoutError: Timeout after 60000 for id: 3, Calling function FileSystemService/findN...
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuclide.