Open olostan opened 10 years ago
Mark here
Seems like gyp having some issues. @TooTallNate any ideas why?
IS there any sense of creating issue on node_gyp so authors will try to find the solution? May signature of some node_gyp methods where changed?
I think that's a good idea.
Can someone who is more familiar with how node-usage
using node-gyp
describe what could be a problem to make in issue at node-gyp
more specific? Because for me, npm install node-gyp
finish without any problem... So looks like there is something with using it.
I have the problem same as @olostan npm install node-gyp
is alright. npm install usage -g
has this problem.
Like @kelvinlee I too have this issue. node install node-gyp -g
works fine for me too, however npm install usage
also fails with an almost identical output as @olostan (so similar I didn't think it was worth pasting my output here but have emailed it to @arunoda).
Did anybody found any workaround? (another version of node/node-gyp?)
Same issue here
node-gyp@~0.11 works.
@gifarangw you was able to install node-usage
wuth node-gyp
version 0.11?
@gifarangw @olostan I have cloned node-gyp and node-usage repositories then did the following:
1) Rolled back node-gyp to v0.11.0 (with git checkout 170c1a9....)
2) npm install -g
from the node-gyp directory I just cloned
3) Altered npm-usage/package.json by adding "node-gyp": "~0.11",
before the bindings entry so the dependencies looked like this:
"dependencies": {
"node-gyp": "~0.11",
"bindings": "1.x.x"
},
4) Ran npm install -g
from the node-usage folder.
Unfortunately, I got the same errors as before, including a gyp ERR! node-gyp -v 0.12.1
which suggests I'm doing something noobish. Any suggestions @gifarangw?
PS I came across this problem while trying to install PM2 on CentOS 6.5. I can install PM2 and therefore node-usage on Mac OSX Lion and Ubuntu.
@olostan @workingmatt I manually altered node-gyp version under npm's directory by executing commands as follow:
1) cd $HOME/.nvm/v0.11.9/lib/node_modules/npm 2) npm install node-gyp@~0.11
Env:
CentOS release 6.4 (Final) LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch CentOS release 6.4 (Final) CentOS release 6.4 (Final)
In my case this solves node-usage installation problem, but node v0.11.9 with node-gyp@0.11 makes some errors while installing other modules...... I decided to rollback node version to v0.10.24, official stable version.
@workingmatt I also encountered this error while installing pm2 on CentOS machine. After changing node version to v0.10.24 (with npm@1.3.6, node-gyp@0.10.6), pm2 can be successfully installed. As you may know, pm2 on node 0.10.x has a known issue about releasing port (https://github.com/Unitech/pm2/issues/74), which can be solved by using fork option.
@gifarangw thank you. Your approach worked for me with a subtle change to the path used because I'm not using nvm just npm and node v0.10.24 on CentOS 6.4
cd /usr/lib/node_modules/npm npm install node-gyp@0.10.6 cd ~ npm install -g pm2
PM2 is now working on CentOS, but I think this is a workaround and this issue should remain open for usage and/or node-gyp.
+1 to @workingmatt for his comment. It worked very well for me, but I had to reinstall NodeJS from source.
+1 @workingmatt
don't work with node 0.10.26 a npm 1.4.4 => error code ELIFECYCLE
stay in 0.10.24 guys... I 'll try tommorrow
During installing 'usage' I got:
node -v v0.11.9 node-gyp -v v0.12.2 Python 2.6.6