0
我想要全局安裝pm2以運行我的nodejs應用程序。我的操作系統是Ubuntu 14.04 64bit和節點版本0.10.33。pm2安裝結果錯誤
當我運行命令故宮安裝PM2 -g它提供了以下錯誤
npm ERR! [email protected] preinstall: `bash ./scripts/preinstall.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is most likely a problem with the pm2 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bash ./scripts/preinstall.sh
npm ERR! You can get their info via:
npm ERR! npm owner ls pm2
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-36-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "pm2" "-g"
npm ERR! cwd /home/ubuntu
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
[email protected]:~$
已經嘗試使用sudo npm install pm2 -g – manas 2014-11-04 12:22:28
嘗試使用: npm緩存清除-f 和 npm install pm2 -g --unsafe-perm – zoram 2014-11-04 12:36:47
這次它工作了!謝謝 – manas 2014-11-04 13:14:41