我是nodejs和npm的新手。我正在尝试安装log4js,这是安装命令:
npm install log4js
我是从Windows命令行运行的,经过一段时间的标记旋转后,出现以下错误:
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "log4js"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code SELF_SIGNED_CERT_IN_CHAIN
npm ERR! self signed certificate in certificate chain
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\srv\npm-debug.log
我试着做 npm config set ca=""
此处的建议进行操作:http : //blog.npmjs.org/post/78085451721/npms-self-signed-certificate-is-no-more,但我仍然遇到此错误。
我该如何解决并安装NPM?