当我在Ubuntu 12.04.1上永远玩得开心时,我将node.js从v0.6.12升级到v0.8.15后得到了以下错误.在升级之前它运作良好.以前有人遇到过这种问题吗?
$forever module.js:340 throw err; ^ Error: Cannot find module './daemon.v0.8.15' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:362:17) at require (module.js:378:17) at Object.<anonymous> (/usr/local/lib/node_modules/forever/node_modules/daemon/lib/daemon.js:12:11) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:362:17)
我的环境是
node v0.8.15 npm 1.1.66
我用命令行打击安装了node和npm
$sudo apt-get install python-software-properties -y $sudo add-apt-repository ppa:chris-lea/node.js $sudo apt-get update $sudo apt-get install nodejs npm -y
我用命令行永远安装
$sudo npm install forever -g