我是nodejs和npm的新手.我正在尝试安装log4js,这是安装的命令:
npm install log4js
Run Code Online (Sandbox Code Playgroud)
我正在从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
Run Code Online (Sandbox Code Playgroud)
我尝试过npm config set ca=""像这里建议的那样:http://blog.npmjs.org/post/78085451721/npms-self-signed-certificate-is-no-more但我仍然收到此错误.
我该如何解决这个问题并安装NPM?