noduino icon indicating copy to clipboard operation
noduino copied to clipboard

NPM ERROR

Open apricat opened this issue 13 years ago • 8 comments

Hi, I'm having issues with the npm configuration...

gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:350:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:96:17) gyp ERR! stack at Process._handle.onexit (child_process.js:678:10) gyp ERR! System Darwin 12.2.0 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/Clobot/noduino/node_modules/serialport gyp ERR! node -v v0.8.12 gyp ERR! node-gyp -v v0.7.0 gyp ERR! not ok npm ERR! [email protected] install: node-gyp rebuild npm ERR! sh "-c" "node-gyp rebuild" failed with 1 npm ERR! npm ERR! Failed at the [email protected] 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-gyp rebuild 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 Darwin 12.2.0 npm ERR! command "node" "/usr/local/bin/npm" "install" npm ERR! cwd /Users/Clobot/noduino npm ERR! node -v v0.8.12 npm ERR! npm -v 1.1.63 npm ERR! code ELIFECYCLE [ws v0.4.22] Native code compile failed (but the module will still work): [ws v0.4.22] The native extensions are faster, but not required. [ws v0.4.22] On Windows, native extensions require Visual Studio and Python. [ws v0.4.22] On Unix, native extensions require Python, make and a C++ compiler. [ws v0.4.22] Start npm with --ws:verbose to show compilation output (if any). npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/Clobot/noduino/npm-debug.log npm ERR! not ok code 0

/---------------------- 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-gyp rebuild /----------------------

Any fix? Thank you!

apricat avatar Oct 17 '12 00:10 apricat

Same error here on windows and MacOs X.....Did some one fixed it?

Thankssss

borntodive avatar Oct 17 '12 11:10 borntodive

Seems to be a problem with installign node-serialport:

npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the serialport package,

sbstjn avatar Oct 17 '12 12:10 sbstjn

I had this issue and found out I didn't have GCC installed. I installed GCC [separately](https://developer.apple.com/downloads/index.action?=Command Line Tools %28OS X Mountain Lion%29) to avoid having to download the whole Xcode package and I was able to install successfully afterwards.

glidej avatar Dec 05 '12 02:12 glidej

install xcode comand line tools

Preferences... > Downloads > Command Line Tools

carlituxman avatar Dec 28 '12 11:12 carlituxman

@carlituxman perfect. Thanks, that worked in OSX.

bengarvey avatar Apr 08 '13 02:04 bengarvey

Do we have a fix for Windows users? I am on Windows 8.1 Pro, and faces the exact same issue.

kluplau avatar Jan 06 '14 22:01 kluplau

@Blueblau I'm not familiar with the Windows environment, but it appears this issue stems from not having GCC installed. A quick google for "windows gcc" reveals this project. I would give that a try.

glidej avatar Jan 07 '14 14:01 glidej

Thanks.

The mentioned issue resolved itself when I installed Python. But then I had trouble making the command "python" global. I still haven't found a solution to this, so I am on the verge of quitting.

kluplau avatar Jan 07 '14 18:01 kluplau