-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm particle-cli failing. #119
Comments
fixed by installing nodejs-legacy |
Can you post the entire contents of the |
This happened to me using the osx installer from nodejs.org ( currently https://nodejs.org/dist/v4.1.1/node-v4.1.1.pkg ). I uninstalled that whole mess and used brew to install node instead and then the particle-cli install succeeded. |
@RocketPop that is because node 4.0 is not supported yet. See https://github.com/spark/particle-cli#known-issues |
Thanks for the confirmation, Bryce. It might be nice if someone could put a note to this effect in all the readme/setup/getting started guides where they all say to go install node and save some other folks some confusion :) |
Should this be working now? I see 356dbe4 has removed the mentioned comment, but I'm still getting the same error message (attempted both with v4.2.1 as well as v3.3.1/io.js). |
@jmagnuson the newest version of the CLI supports Node 4.x |
@emilyrose - I'm still running into this issue. I've done as much poking as I can with all the dependencies as I could, but I'm stuck.
and when I check npm afterwards, it reports that the dependencies serialport, node-pre-gyp, readable-stream, and string-decoder failed to install/have errors. The particle-cli appears to work, and it logs in just fine, but becomes irresponsive trying to provision the device:
^ cli becomes completely irresponsive after this point. all calls to particle serial don't work, except 'list'. particle get throws an exception - clearly the install is very broken. This thread points to an issue with el capitan: which leads to this, which is supposedly a the fix, I can verify that serialport 2.0.1 is the version npm tried to install. Sadly it still does not work for me. I'm running OSX 10.11 El Capitan, node v4.2.1. I've installed xcode and all command line tools. Any ideas what could help? Could someone else confirm that they got particle working with El Capitan? Are there other ways of setting up the device through some other means? |
@brightredchilli I'm sorry to hear you're still having trouble! I can confirm that I've got the CLI working with node 4.2.0 and OS X 10.11 El Capitan. One possible solution is to just downgrade to node 0.12 until whatever lingering OS X issues remain are flushed out. EDIT: I updated to Node 4.2.1 prior to that gist, actually. |
I actually have tried many versions of node from 0.11 to 4.2.1, and I get the same error every time. This leads me to believe that I have an issue compiling node-pre-gyp from source(since there is no binary for my system). I'll be looking there and will post back here if I find anything. |
@brightredchilli would you be willing to try with version |
Oh wow that is a fresh release! Sure! I just tried - I still notice the build errors - but I don't have a photon with me to check the setup right now. I'll let you know tonight. |
I just had the same issue on OS Yosemite. I tried both node 4.2.4 and 5.3.0. |
@ktodyruik what's the error log saying? |
The pkg installations of node from the node website (4.2.4 and 5.3.0) don't seem to be working with particle-cli. I took @RocketPop 's suggestion, installing node with brew and particle-cli installed.
Brew installed this version 0.10.32 which works with particle-cli.
|
sudo npm install -g particle-cli
gyp WARN EACCES user "root" does not have permission to access the dev dir "/Users/jaredmoulton/.node-gyp/0.10.41" xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance make: *** No rule to make target npm ERR! serialport@2.0.5 install: npm ERR! Please include the following file with any support request: This is the error I get with node v0.10.41 |
The error is stated here:
and as mentioned in the docs: https://docs.npmjs.com/getting-started/fixing-npm-permissions |
npm WARN engine hawk@3.1.0: wanted: {"node":">=0.10.32"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})
\
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! serialport@1.7.4 install:
node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@1.7.4 install script.
npm ERR! This is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.16.0-4-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "particle-cli"
npm ERR! cwd /home/nota
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/nota/npm-debug.log
npm ERR! not ok code 0
The text was updated successfully, but these errors were encountered: