npm配置安装淘宝镜像
时间: 2023-09-03 10:14:55 浏览: 162
要配置npm安装淘宝镜像,可以使用以下命令:npm config set registry https://registry.npm.taobao.org。这将将npm的镜像源切换到淘宝镜像。
如果发现淘宝镜像不适合你的需求,可以切换回默认镜像(国外),使用命令:npm config set registry https://registry.npmjs.org。
另外,你还可以安装cnpm来使用淘宝镜像。首先,使用命令npm install -g cnpm --registry=https://registry.npm.taobao.org 安装cnpm,然后使用cnpm install xxx来安装所需的包。
总结起来,要配置npm安装淘宝镜像,可以使用npm config set registry https://registry.npm.taobao.org命令,也可以安装cnpm并使用cnpm install来安装包。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [npm配置安装淘宝镜像(全)](https://blog.csdn.net/weixin_47872288/article/details/124787077)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [安装配置淘宝镜像npm(cnpm)](https://blog.csdn.net/qq_51644702/article/details/123998785)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文