npm 安装错误及处理方法

来源:互联网 发布:桌面规划软件 编辑:程序博客网 时间:2024/06/04 19:24

npm 安装错误及处理方法

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

原因:
2014年2月27日,npm不再支持自签名证书。
因为npm install走的是https协议,需要通过数字证书来保证的
解决:
取消ssl验证
npm config set strict-ssl false

0 0
原创粉丝点击