码迷,mamicode.com
首页 > 其他好文 > 详细

npm 遇到的坑

时间:2018-12-19 16:59:24      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:create   项目   lse   creat   https协议   ica   搭建   reac   als   

在脚手架方式搭建react项目时,输入命令:npm install -g create-react-app,出现错误:

UNABLE_TO_VERIFY_LEAF_SIGNATURE
UNABLE_TO_VERIFY_LEAF_SIGNATURE
unable to verify the first certificate(无法验证第一证书)


然后各种报错。

因为npm install走的是https协议,需要通过数字证书来保证的,

所以,取消ssl验证:npm config set strict-ssl false

npm 遇到的坑

标签:create   项目   lse   creat   https协议   ica   搭建   reac   als   

原文地址:https://www.cnblogs.com/yuanyuanya/p/10144005.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!