achingbrain / achingbrain/pm2-web

Node version error

Open
#51 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
539
Forks
88
PR merge metrics
No merged PRs in 30d

Description

Any idea how to fix this

> pwuid@1.0.2 install /usr/lib/node_modules/pm2-web/node_modules/pwuid
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/home/dqvsra/.node-gyp/2.3.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/pm2-web/node_modules/pwuid/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: 404 status code downloading tarball
gyp ERR! stack at Request. (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:246:14)
gyp ERR! stack at emitOne (events.js:82:20)
gyp ERR! stack at Request.emit (events.js:169:7)
ERR! stack at Request.onResponse (/usr/lib/node_modules/npm/node_modules/request/request.js:1085:10)
gyp ERR! stack at ClientRequest.g (events.js:260:16)
gyp ERR! stack at emitOne (events.js:77:13)
gyp ERR! stack at ClientRequest.emit (events.js:169:7)
gyp ERR! stack at HTTPParser.parserOnIncomingClient (_http_client.js:415:21)
gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23)
gyp ERR! stack at Socket.socketOnData (_http_client.js:305:20)
gyp ERR! System Linux 3.16.0-30-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/pm2-web/node_modules/pwuid
gyp ERR! node -v v2.3.0
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"2.3.0","npm":"1.4.28"})

> ws@0.4.32 install /usr/lib/node_modules/pm2-web/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
>
> mdns2@2.1.4 install /usr/lib/node_modules/pm2-web/node_modules/mdns2
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/home/dqvsra/.node-gyp/2.3.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/pm2-web/node_modules/mdns2/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: 404 status code downloading tarball
gyp ERR! stack at Request. (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:246:14)
gyp ERR! stack at emitOne (events.js:82:20)
gyp ERR! stack at Request.emit (events.js:169:7)
gyp ERR! stack at Request.onResponse (/usr/lib/node_modules/npm/node_modules/request/request.js:1085:10)
gyp ERR! stack at ClientRequest.g (events.js:260:16)
gyp ERR! stack at emitOne (events.js:77:13)
gyp ERR! stack at ClientRequest.emit (events.js:169:7)
gyp ERR! stack at HTTPParser.parserOnIncomingClient (_http_client.js:415:21)
gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23)
gyp ERR! stack at Socket.socketOnData (_http_client.js:305:20)
gyp ERR! System Linux 3.16.0-30-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/pm2-web/node_modules/mdns2
gyp ERR! node -v v2.3.0
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"2.3.0","npm":"1.4.28"})
npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"2.3.0","npm":"1.4.28"})
npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"2.3.0","npm":"1.4.28"})
npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"2.3.0","npm":"1.4.28"})
npm WARN optional dep failed, continuing mdns2@2.1.4
npm ERR! pwuid@1.0.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pwuid@1.0.2 install script.
npm ERR! This is most likely a problem with the pwuid 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 pwuid
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "pm2-web"
npm ERR! cwd /home/dqvsra/Documents/Projects/Servers/PM2/express
npm ERR! node -v v2.3.0
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
dqvsra@workstation:~/Documents/Projects/Servers/PM2/express$ pm2-web
pm2-web: command not found

?

Ubuntu 15.0

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the global pm2-web installation on Ubuntu 15.0 with Node v2.3.0, then inspect the pwuid and node-gyp failures, including the reported 404 and permission warnings. Check the Node 0.8 engine warnings in the install output; done means installation succeeds and the pm2-web command is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.