Skip to content

Problem with npm install #25

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

Closed
mapirelli opened this issue Feb 13, 2013 · 7 comments
Closed

Problem with npm install #25

mapirelli opened this issue Feb 13, 2013 · 7 comments

Comments

@mapirelli
Copy link

I i had a problem with the installation of the package on Window using npm.
I attach the npm error log. Thank you.

ERR! [email protected] preinstall: node-waf clean || (exit 0); node-waf configure build
ERR! cmd "/c" "node-waf clean || (exit 0); node-waf configure build" failed with 1
ERR!
ERR! Failed at the [email protected] preinstall script.
ERR! This is most likely a problem with the node-stringprep package,
ERR! not with npm itself.
ERR! Tell the author that this fails on your system:
ERR! node-waf clean || (exit 0); node-waf configure build
ERR! You can get their info via:
ERR! npm owner ls node-stringprep
ERR! There is likely additional logging output above.
ERR!
ERR! System Windows_NT 6.1.7601
ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "node-stringprep"
ERR! cwd C:\Program Files (x86)\nodejs
ERR! node -v v0.8.19
ERR! npm -v 1.1.0-3
ERR! code ELIFECYCLE
ERR! message [email protected] preinstall: node-waf clean || (exit 0); node-waf configure build
ERR! message cmd "/c" "node-waf clean || (exit 0); node-waf configure build" failed with 1
ERR! errno {}
verbose exit [ 1, true ]

@aberwristwatch
Copy link

I have the same problem.

gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/opt/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:255:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Linux 3.8.3-103.fc17.x86_64
gyp ERR! command "node" "/opt/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/projects/xmpp_test/node_modules/node-stringprep
gyp ERR! node -v v0.8.18
gyp ERR! node-gyp -v v0.8.2
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 node-stringprep 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 node-stringprep
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.8.3-103.fc17.x86_64
npm ERR! command "node" "/opt/node/bin/npm" "install" "node-stringprep"
npm ERR! node -v v0.8.18
npm ERR! npm -v 1.1.71
npm ERR! code ELIFECYCLE

@fraserxu
Copy link

fraserxu commented Sep 4, 2013

Try three different version of icu4c on my mac os x with brew. Returns me

npm http GET https://registry.npmjs.org/node-stringprep
npm http 304 https://registry.npmjs.org/node-stringprep

> [email protected] install /Users/fraserxu/Desktop/node-xmpp/node_modules/node-stringprep
> node-gyp rebuild

  CXX(target) Release/obj.target/node_stringprep/node-stringprep.o
../node-stringprep.cc:3:10: fatal error: 'unicode/unistr.h' file not found
#include <unicode/unistr.h>
         ^
1 error generated.
make: *** [Release/obj.target/node_stringprep/node-stringprep.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/Cellar/node/0.10.9/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Darwin 12.4.0
gyp ERR! command "node" "/usr/local/Cellar/node/0.10.9/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/fraserxu/Desktop/node-xmpp/node_modules/node-stringprep
gyp ERR! node -v v0.10.9
gyp ERR! node-gyp -v v0.9.6
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0

@hahnemann
Copy link

I have the same problem on OS X 10.7.5, node v0.10.18 and npm 1.3.11.

@fresheneesz
Copy link

I have the same problem on centos-6.4-x86_64-v20130427 (running in vagrant/virtualbox). This library shouldn't require external installations to install - npm install should do everything.

Since you don't have any instructions for installing libicu on CentOS, I'm not sure how to install node-stringprep. I tried yum install libicu but no dice - I still get the 'make' failed with exit code: 2

@lloydwatkin
Copy link
Contributor

Hi @fresheneesz I believe you need to install libicu-dev(el) in centos

@fresheneesz
Copy link

Thanks, i'll try that!

@lloydwatkin
Copy link
Contributor

Closing issue. If this is still a problem please can you open a new issue? There's been lots of changes recently which may have solved this issue. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants