npm install cnpm后cnpm报错
时间: 2023-08-25 07:14:04 浏览: 137
根据您提供的引用内容,您在安装cnpm后遇到了报错。根据中的报错信息,错误代码为ERR_TLS_CERT_ALTNAME_INVALID,这可能是由于证书的altnames不匹配所致。为了解决这个问题,您可以参考中的解决办法。其中,第一种方法是通过设置npm的registry来解决,您可以使用以下命令进行设置:npm config set registry https://registry.npm.taobao.org。然后,您可以通过npm config get registry命令来验证是否设置成功。另外,第二种方法是通过使用cnpm来安装,您可以使用以下命令进行安装:npm install -g cnpm --registry=https://registry.npm.taobao.org。希望这些解决方法能帮助您解决问题。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [npm install -g cnpm安装报错](https://blog.csdn.net/heshouwu_1026/article/details/121554169)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *2* [用NPM安装CNPM报错怎么解决?](https://blog.csdn.net/qq_32616373/article/details/124187054)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *3* [npm install cnpm -g 出错 npm ERR! Error: EPERM: operation not permitted, rename](https://blog.csdn.net/qq_44427343/article/details/131026575)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文