Install fails on Ubuntu 12.04 32-bit
$ uname -a Linux precise32 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04 LTS Release: 12.04 Codename: precise
$ sudo npm install -g memwatch npm http GET https://registry.npmjs.org/memwatch npm http 304 https://registry.npmjs.org/memwatch
[email protected] install /usr/local/lib/node_modules/memwatch node-gyp rebuild
sh: 1: node-gyp: not found npm ERR! error installing [email protected]
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! sh "-c" "node-gyp rebuild" failed with 127
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the memwatch 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 memwatch
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 3.2.0-23-generic-pae
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "memwatch"
npm ERR! cwd /vagrant
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] install: node-gyp rebuild
npm ERR! message sh "-c" "node-gyp rebuild" failed with 127
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /vagrant/npm-debug.log
npm not ok
Hey @lloyd,
I had this same problem and dug around a bit. Found out that people who install node via the deb package
From my provision script:
sudo add-apt-repository ppa:chris-lea/node.js
<snip>
sudo apt-get install -y nodejs
sudo ln -fs /usr/bin/nodejs /usr/bin/node
Would get this error when attempting to install this module. I then found a posting on node-gyp which tells how to solve this: (https://github.com/TooTallNate/node-gyp/issues/363#issuecomment-30575831) by switching back to Python 2.6.
Once I switched to Python 2.6 I could install fine.
Wondering if you should change the readme to indicate that 2.6 is needed rather then 2.7
Still can't install even drawback to Python 2.6 Any enlightment ?
I'm stuck on this as well, +1.
same here with me :(
my server
Distributor ID: Debian
Description: Debian GNU/Linux 8.2 (jessie)
Release: 8.2
Codename: jessie