这里有人试过 Crossmon-server 吗?我一直在搜索谷歌以找到任何提示,说明我在安装过程中可能缺少什么但没有成功。此处描述了基本步骤:https ://npmjs.org/package/crossmon-server 。
我正在使用最新的 Node 版本 v0.10.24 在 OS X Mavericks 中安装它。运行后
richard:~ root# npm install crossmon-server
并做一个richard:~ root# which crossmon-server
我仍然一无所获....crossmon-server
返回-sh: crossmon-server: command not found
更新:
全局安装并-g
导致此错误Please try running this command again as root/Administrator.
因此,我同时执行sudo npm install crossmon-server -g
并sudo su -
重新运行了安装命令,但仍然收到相同的错误消息:
> crossmon-server@0.0.15 preinstall /usr/local/lib/node_modules/crossmon-server
> npm i -g forever
npm ERR! Error: EACCES, open '/Users/rbm/.npm/28ef027b-forever.lock'
npm ERR! { [Error: EACCES, open '/Users/rbm/.npm/28ef027b-forever.lock']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/rbm/.npm/28ef027b-forever.lock' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.0.2
npm ERR! command "node" "/usr/local/bin/npm" "i" "-g" "forever"
npm ERR! cwd /usr/local/lib/node_modules/crossmon-server
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path /Users/rbm/.npm/28ef027b-forever.lock
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/Users/rbm/.npm/28ef027b-forever.lock'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/local/lib/node_modules/crossmon-server/npm-debug.log
npm ERR! not ok code 0
npm ERR! crossmon-server@0.0.15 preinstall: `npm i -g forever`
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the crossmon-server@0.0.15 preinstall script.
npm ERR! This is most likely a problem with the crossmon-server package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm i -g forever
npm ERR! You can get their info via:
npm ERR! npm owner ls crossmon-server
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.0.2
npm ERR! command "node" "/usr/local/bin/npm" "install" "crossmon-server" "-g"
npm ERR! cwd /Users/rbm/workspace/prototype-int/monitoring-service
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/rbm/workspace/prototype-int/monitoring-service/npm-debug.log
npm ERR! not ok code 0
我很感激任何已经尝试过这个工具的人的帮助。
提前致谢!