← 返回文章

NodeJS 配置代理和镜像

目录

下载

nvm-windows

  • nvm install 14
  • nvm install 16
  • nvm install 20
  • nvm install 22
  • nvm install 24
  • nvm install lts

设置 nvm 代理镜像

代理和镜像设置其中一项即可

shell
nvm proxy http://127.0.0.1:7890
shell
nvm node_mirror https://cdn.npmmirror.com/binaries/node/
shell
nvm npm_mirror https://cdn.npmmirror.com/binaries/npm/

设置 npm install 代理

代理和镜像设置其中一项即可

设置代理

shell
npm config set proxy http://127.0.0.1:7890

设置镜像

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

文章信息

基于 Git 提交记录的文章历史

发布时间
更新时间
修订次数
3 次提交
贡献者
qwas
查看 Git 提交历史
返回文章列表 →