当前位置:首页 > 技术教程 > 正文

npm install总是报错:unable to verify the first certificate的两种解决方法

拉起svn 运行碰到问题:

本地项目问题 解决办法:

重新打开cmd窗口:

npm install总是报错:unable to verify the first certificate的两种解决方法 第1张

取消ssl验证:

解决方法一:

npm install总是报错:unable to verify the first certificate的两种解决方法 第2张

Something ssl Something: NPM config set strict-ssl false

如果我没成功,则需要将npm源转换成国内的镜像源:

NPM CONFIG SET REGISTRY HTTP: Registry.CNPMJS. Organize/ NPM CONFIG SET REGISTRY HTTP: Registry.npm. TaoBao.org/

解决方法二:

升级:npm install npm -g --ca=null 或者 npm config set ca=““

以上就是关于“npm install总是报错:unable to verify the first certificate的两种解决方法”的相关介绍,若有不清楚的可以咨询西西云,西西云作为云南为数不错持有ICP/ISP/IDC等资质专业云计算提供商之一,成本控制良好,性价比高!提供各类云服务器产品及ICP备案一站式服务,操作简单快捷,7*24小时不间断售后运维技术支持,专业备案团队全力支持。

产品选购地址:https://www.kufanyun.com/server/buy.html

npm install总是报错:unable to verify the first certificate的两种解决方法 第3张

0