npm 安装 --save-dev gulp : SELF_SIGNED_CERT_IN_CHAIN
npm install --save-dev gulp : SELF_SIGNED_CERT_IN_CHAIN
我正在尝试学习 node 和 npm 以及 gulp 并且 运行 都陷入了这个错误。
$ npm install --save-dev gulp
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" "--save-dev" "gulp"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
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! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\davidb\desktop\testproject\npm-debug.log
有谁知道如何解决这个问题?我使用的是 gitbash 而不是 node,因为在我的节点中我什至无法执行 node-v 我必须使用 process.version 来获取版本。并对此提供帮助将不胜感激!我一直在使用 http://blog.npmjs.org/post/78165272245/more-help-with-selfsignedcertinchain-and-npm 来尝试解决问题,但没有任何效果。
也试过:
npm config set ca ""
and
npm install npm -g --ca=""
两者均无效,我仍然收到错误 npm ERR!代码 SELF_SIGNED_CERT_IN_CHAIN
也许 Windows 的 SSL 拦截代理把你的 npm 弄乱了。
签出 Github 问题答案 - https://github.com/npm/npm/issues/7519#issuecomment-97522305
其他选项:
npm config set registry http://registry.npmjs.org/
但这会降低您的安全性。
我正在尝试学习 node 和 npm 以及 gulp 并且 运行 都陷入了这个错误。
$ npm install --save-dev gulp
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" "--save-dev" "gulp"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
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! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\davidb\desktop\testproject\npm-debug.log
有谁知道如何解决这个问题?我使用的是 gitbash 而不是 node,因为在我的节点中我什至无法执行 node-v 我必须使用 process.version 来获取版本。并对此提供帮助将不胜感激!我一直在使用 http://blog.npmjs.org/post/78165272245/more-help-with-selfsignedcertinchain-and-npm 来尝试解决问题,但没有任何效果。
也试过:
npm config set ca ""
and
npm install npm -g --ca=""
两者均无效,我仍然收到错误 npm ERR!代码 SELF_SIGNED_CERT_IN_CHAIN
也许 Windows 的 SSL 拦截代理把你的 npm 弄乱了。
签出 Github 问题答案 - https://github.com/npm/npm/issues/7519#issuecomment-97522305
其他选项:
npm config set registry http://registry.npmjs.org/
但这会降低您的安全性。