node.js踩坑

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

posted @ 2020-06-13 14:15  小菲同学  阅读(171)  评论(0编辑  收藏  举报