node.js踩坑

时间:2020-06-13 14:32:53   收藏:0   阅读:60

1.nmp install express -g环境配置报错

npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! errno UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! request to https://registry.npmjs.org/express failed, reason: unable to verify the first certificate

处理方式:

npm  config set strict-ssl  false

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!