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