Skip to content

Node.js全局配置NPM源

Windows

shell
编辑 C:\Users\你的用户名\.npmrc, 内容:
registry=https://registry.npmmirror.com

Linux

shell
echo 'registry=https://registry.npmmirror.com' > ~/.npmrc