pm2-webshell
pm2-webshell copied to clipboard
can't install pm2-webshell
Hello there. I can't install pm2-webshell to my Ubuntu 14 server, node 4.4.3.
pm2 install pm2-webshell returned this:
[PM2][Module] Installing module pm2-webshell
[PM2][Module] Processing...
...../home/ubuntu/.pm2
├─┬ [email protected]
│ └── UNMET PEER DEPENDENCY bower@*
└─┬ [email protected]
├── [email protected]
└─┬ [email protected]
└─┬ [email protected]
├── [email protected]
└── [email protected]
[PM2][Module][ERROR] Unknown module
Can you help me with this?
Same problem
+1
+1
+1
+1
+1
Everyone .. use react insted comment :+1: :smile:
+1
using reactions seems to be too difficult :+1:
Please upgrade to PM2 v2 and tell me if that works better:
$ npm install Unitech/pm2#development -g
$ pm2 install pm2-webshell
If that does not work please upgrade NPM:
$ npm install npm -g
not work npm 3.10 node 6.x
ake: *** [Release/obj.target/pty/src/unix/pty.o] Error 1
make: Leaving directory `/home/ubuntu/.pm2/node_modules/pty.js/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 3.13.0-74-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ubuntu/.pm2/node_modules/pty.js
gyp ERR! node -v v6.1.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm ERR! Linux 3.13.0-74-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "pm2-webshell" "--prefix" "/home/ubuntu/.pm2" "--loglevel=error"
npm ERR! node v6.1.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the pty.js 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 information on how to open an issue for this project with:
npm ERR! npm bugs pty.js
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls pty.js
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /npm-debug.log
[PM2][Module] Module downloaded
module.js:440
throw err;
^
Error: Cannot find module '/home/ubuntu/.pm2/node_modules/pm2-webshell/package.json'
at Function.Module._resolveFilename (module.js:438:15)
at Module.cachePathsRequire [as require] (/usr/lib/node_modules/pm2/node_modules/cache-require-paths/index.js:29:25)
at require (internal/module.js:20:19)
at startModule (/usr/lib/node_modules/pm2/lib/CLI/Modules/Modularizer.js:32:22)
at /usr/lib/node_modules/pm2/lib/CLI/Modules/Modularizer.js:144:9
at /usr/lib/node_modules/pm2/lib/Configuration.js:108:14
at FSReqWrap.oncomplete (fs.js:117:15)
https://github.com/chjj/pty.js/search?q=node-gyp&type=Issues&utf8=%E2%9C%93
Works perfectly :+1:
Tested on: Ubuntu 14.04 LTS x64 Node.js v4.4.7 / NPM 3.10.3 / PM2 2.0.0-rc3 (after update from development branch)
Don't forget to install build-essential:
sudo apt-get install build-essential
otherwise node-gyp won't be able to build native Node.js modules required by pm2-webshell
not working: node v6.3.1 pm2 1.1.3
@sergej-s Did you tried to install node-gyp ?
node v4.4.4 pm2 2.4.6 npm 5.0.3
log:
3014 warn enoent ENOENT: no such file or directory, open '/root/.pm2/package.json'
3015 verbose enoent This is related to npm not being able to find a file.
3016 warn .pm2 No description
3017 warn .pm2 No repository field.
3018 warn .pm2 No README data
3019 warn .pm2 No license field.
3020 verbose stack Error: [email protected] install: node-gyp rebuild
3020 verbose stack Exit status 1
3020 verbose stack at EventEmitter.node-gyp rebuild
3029 error Exit status 1
3030 error Failed at the [email protected] install script.
3030 error This is probably not a problem with npm. There is likely additional logging output above.
3031 verbose exit [ 1, true ]
what should I do,thanks
doesn't work for me either... looks like from the comments it expects some build environment, which simply doesn't exist on my windows box, which is behind a proxy...however pm2 works at least