Saturday 15 March 2014

node.js - Impossible to install bcrypt with npm on EC2 -


At an Amazon EC2 instance on an Ubuntu server 14.04, I had an error while installing npm . It failed to set bcrypt ( "bcrypt": "^ 0.8.1" in my package.json ).

I have an error here:

  & gt; Bcrypt@0.8.1 install / home / ubuntu / app / node_modules / bcrypt & gt; Node-jeep child_process reconstruction: customfds option has been deprecated, instead use stdio. Make: To create the directory `/ home / ubuntu / app / node_modules / bcrypt / build 'csex (target) / obj.target / bcrypt_lib / src / blowfish.o: g ++: command not found Enter: ** * [Release / Obj.target/bcrypt_lib/src/blowfish.o] Error 127 Do the following: Directory `/ home / ubuntu / app / node_modules / bcrypt / build 'except gyp ERR! Create error gipple ERR! Stack error: `Devo` in exit code failed: 2GIP ERR! Stack on hair process. Xx (/home/ubuntu/node-v0.12.0-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/build.jsailand67:23) gyp ERR! Stack on childProcess.emit (events.js: 110: 17) gyp ERR! Stack on the process Child process._hand.onexit (child_process.js: 1067: 12) gyp ERR! System Linux 3.13.0-44-Generic GIP ERR! Command "node" "/ home / buntu / node-v0.12.0-linux-x64 / lib / node_modules / npm / node_modules / node-gyp / bin / node-gyp.js" "rebuild" GIP ERR! Cwd / home / ubuntu / app / node_modules / bcrypt gyp ERR! Node-v v0.12.0 gip err! Node-Jeep-V v1.0.2 GEP ERR! OK  

I just had to install build tools sudo apt-get ADT with any problem with the apt-dock To get you to get apt-get update

install - otherwise you e: failed to fetch ...

Then Install NPM again and you can go!


No comments:

Post a Comment