npm install forever Error: SSL Error: SELF_SIGNED_CERT_IN_CHAIN

在运行:npm install -g forever,会提示Error: SSL Error: SELF_SIGNED_CERT_IN_CHAIN错误,错误截图如下:
http://openskill.cn/uploads/questions/20150702/b9b4fbedef5fc977f8569b5386a18eec.png

已邀请:

Ansible - 项目实施 系统工程师

npm install npm -g –ca=“”
启动程序的时候,可能会提示错误:“Error:Cannot find module ‘coffee-script’“

”Error: Cannot find module ‘./server’“

运行:npm install –d ,在运行:export NODE_PATH=/usr/local/lib/node_modules/

然后就可以启动程序了。

要回复问题请先登录注册