关于javascript:npmcnpm-设置镜像地址

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

(完)

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理