这是因为淘宝源的ssl证书不能被npm接受导致的,解决方法:
npm config set strict-ssl false
或者把npm源重新设置为 npm 的源:
npm config set registry http://registry.npmjs.org/
还原为 taobao
npm config set registry https://registry.npm.taobao.org
本文介绍如何处理淘宝npm源的SSL证书问题,提供两种解决方案:禁用严格SSL检查或切换回官方或淘宝npm源,并给出了详细步骤。
这是因为淘宝源的ssl证书不能被npm接受导致的,解决方法:
npm config set strict-ssl false
或者把npm源重新设置为 npm 的源:
npm config set registry http://registry.npmjs.org/
还原为 taobao
npm config set registry https://registry.npm.taobao.org
3822

被折叠的 条评论
为什么被折叠?