js逆向--npm包管理工具切换国内镜像源

js逆向--npm包管理工具切换国内镜像源


在使用npm包管理工具安装js包时,由于官方源下载速度较慢,有时需要切换为国内源,切换命令如下:

npm config set registry https://registry.npmmirror.com

如何查看目前的源呢?

npm config get registry

如何切换回官方源呢?

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

猜你喜欢

转载自blog.csdn.net/lyccomcn/article/details/142547766