解决Error: unable to verify the first certificate报错

2017年2月27日,npm不再支持自签名证书。

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

① 取消ssl验证:npm config set strict-ssl false

如果还没成功,则将npm源更换为国内镜像:

npm config set registry http://registry.npm.taobao.org/

npm config set registry http://registry.cnpmjs.org/

你可能感兴趣的:(解决Error: unable to verify the first certificate报错)