【笔记】修改npm镜像源

前言

修改npm镜像源

通过命令修改镜像源

1
npm config set registry=https://registry.npm.taobao.org

通过配置文件修改镜像源

修改为淘宝镜像

~/.npmrc

1
registry=https://registry.npm.taobao.org

修改为官方镜像

~/.npmrc

1
registry=https://registry.npmjs.org

完成

参考文献

哔哩哔哩——Python小清风
哔哩哔哩——黑马程序员