https://npm.taobao.org/

npm install -g cnpm --registry=https://registry.npm.taobao.org

配置

配置全局安装路径(C盘设置大一些,就不需要修改了)
npm config list
npm config set prefix "D:\resource\nodejs\npm"

配置别名

如果使用的是Git Bash,则

touch ~/.bashrc
echo 'alias ll="ls -rlh --time-style=+%Y-%m-%d_%H:%M:%S --sort=time"' >> ~/.bashrc
echo 'alias npm="cnpm"' >> ~/.bashrc
source ~/.bashrc

相关文章:

  • 2022-01-03
  • 2021-12-24
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-28
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案