1. 下载、安装

下载地址:https://nodejs.org/en/

安装:和安装其他软件一样

2. 查看 npm 配置

通过 npm config list 命令查看配置

NPM: 日常开发环境配置

 

 

 

3. 配置

# 设置NPM prefix目录,即本地库目录
npm config set prefix "D:/npm_repo"
# 设置 NPM cache目录
npm config set cache "D:/npm_cache"

  

4. 更改为 阿里云 镜像

npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global

  

 

相关文章:

  • 2021-12-22
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-06-20
  • 2021-06-18
  • 2022-12-23
猜你喜欢
  • 2021-11-20
  • 2022-01-06
  • 2021-06-03
  • 2022-12-23
  • 2021-11-28
相关资源
相似解决方案