Skip to content
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

Can't install pm2 from deb #75

Closed
w100 opened this issue Sep 3, 2013 · 3 comments
Closed

Can't install pm2 from deb #75

w100 opened this issue Sep 3, 2013 · 3 comments

Comments

@w100
Copy link

w100 commented Sep 3, 2013

Can't install pm2 from deb

In debian/postinst i type

npm install pm2 -g

but in logs:

npm http GET https://registry.npmjs.org/pm2
npm http 304 https://registry.npmjs.org/pm2
npm http GET https://registry.npmjs.org/commander/1.1.0
npm http GET https://registry.npmjs.org/cli-table/0.2.0
npm http GET https://registry.npmjs.org/pm2-multimeter/0.1.2
npm http GET https://registry.npmjs.org/usage/0.3.8
npm http GET https://registry.npmjs.org/axon-rpc/0.0.2
npm http GET https://registry.npmjs.org/watch/0.7.0
npm http GET https://registry.npmjs.org/axon/0.6.1
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/cron/1.0.1
npm http 304 https://registry.npmjs.org/cli-table/0.2.0
npm http 304 https://registry.npmjs.org/commander/1.1.0
npm http 304 https://registry.npmjs.org/axon-rpc/0.0.2
npm http 304 https://registry.npmjs.org/pm2-multimeter/0.1.2
npm http 304 https://registry.npmjs.org/usage/0.3.8
npm http 304 https://registry.npmjs.org/watch/0.7.0
npm http 304 https://registry.npmjs.org/axon/0.6.1
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/cron/1.0.1
npm http GET https://registry.npmjs.org/commander/1.0.5
npm http GET https://registry.npmjs.org/charm
npm http GET https://registry.npmjs.org/keypress
npm http GET https://registry.npmjs.org/colors/0.3.0
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/configurable/0.0.1
npm http GET https://registry.npmjs.org/escape-regexp/0.0.1
npm http 304 https://registry.npmjs.org/keypress
npm http 304 https://registry.npmjs.org/colors/0.3.0
npm http 304 https://registry.npmjs.org/charm
npm http 304 https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/commander/1.0.5

usage@0.3.8 install /usr/lib/node_modules/pm2/node_modules/usage
node-gyp rebuild
npm http GET https://registry.npmjs.org/keypress
npm http 304 https://registry.npmjs.org/configurable/0.0.1
npm http 304 https://registry.npmjs.org/escape-regexp/0.0.1
gyp WARN EACCES user "root" does not have permission to access the dev dir "/home/autoadmin/.node-gyp/0.8.20"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/pm2/node_modules/usage/.node-gyp"
gyp http GET http://nodejs.org/dist/v0.8.20/node-v0.8.20.tar.gz
gyp http 200 http://nodejs.org/dist/v0.8.20/node-v0.8.20.tar.gz
npm http 304 https://registry.npmjs.org/keypress
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:43:28)
gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:46:29)
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:57:16
gyp ERR! stack at Object.oncomplete (fs.js:297:15)
gyp ERR! System Linux 3.2.0-24-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/pm2/node_modules/usage
gyp ERR! node -v v0.8.20
gyp ERR! node-gyp -v v0.8.1
gyp ERR! not ok
npm ERR! usage@0.3.8 install: node-gyp rebuild
npm ERR! sh "-c" "node-gyp rebuild" failed with 1
npm ERR!
npm ERR! Failed at the usage@0.3.8 install script.
npm ERR! This is most likely a problem with the usage 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 usage
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.2.0-24-generic
npm ERR! command "node" "/usr/bin/npm" "install" "pm2" "-g"
npm ERR! cwd /
npm ERR! node -v v0.8.20
npm ERR! npm -v 1.1.70
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /npm-debug.log

npm ERR! not ok code 0

what is this? path /home/autoadmin is exists and rights are ok.

Thank you.

@Unitech
Copy link
Owner

Unitech commented Sep 3, 2013

Are you using a virtual machine/server ?
Tried to install it as root ?
Have you installed build-essential ?

@w100
Copy link
Author

w100 commented Sep 3, 2013

server, ubuntu 12.04 lts, deb package installing with sudo

when i installing pm2,

sudo npm install -g

in my home dir appeared .node-gyp folder. Why? Also see the owners..

4 drwxr-xr-x 5 swix dialout 4096 Sep 3 19:13 0.8.21

Who is swix and dialout?

@Unitech
Copy link
Owner

Unitech commented Sep 4, 2013

There is no occurence of dialout or swix in PM2 code as you can see with grep :

⌬ tknew@Transport:~/Unitech$ grep -R "dialout\|swix" pm2/ | wc -l
0

This system issue is not linked with pm2, please use another place to solve this problem.
Thank you for your understanding.
Closing.

@Unitech Unitech closed this as completed Sep 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants