npm的源设置
作者:互联网
1.在命令行里指定源,改变全局的注册
[root@devops ~]# npm config set registry https://registry.npm.taobao.org
2.修改~/.npmrc 配置文件
[root@devops ~]# vim ~/.npmrc
registry=https://registry.npm.taobao.org
[root@devops ~]# npm config get registry
https://registry.npm.taobao.org/
标签:npm,设置,devops,taobao,registry,https,org 来源: https://www.cnblogs.com/Applogize/p/15727080.html