npm/cnpm 设置镜像地址

npm

查看当前镜像源:

npm config get registry

# https://registry.npmjs.org/

修改当前镜像源:

npm config set registry https://registry.npmjs.org/

cnpm

安装 cnpm:

npm install cnpm -g

查看当前镜像源:

cnpm config get registry

# https://registry.npm.example.com

修改当前镜像源:

cnpm config set registry https://registry.npm.example.com

版权声明

本博客所有的原创文章,作者皆保留版权。转载必须包含本声明,保持本文完整,并以超链接形式注明作者后除和本文原始地址:https://blog.mazey.net/2833.html

(完)

posted @   除除  阅读(488)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
点击右上角即可分享
微信分享提示