安装CNPM失败

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

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2020-08-02T11_01_27_492Z-debug.log

解决方法:

npm config set strict-ssl false

再安装

 

npm install -g cnpm --registry=https://registry.npm.taobao.org

 

posted @ 2022-11-07 20:47  张志健  阅读(879)  评论(0编辑  收藏  举报