目录
- node-v20.18.0-x64
-  - 工具
- 下载
- 安装
- 设置国内镜像源(永久)
 
node-v20.18.0-x64
工具
系统:Windows 11
下载
- 官网https://nodejs.org/zh-cn/download/package-manager
 版本我是跟着老师选的node-v20.18.0-x64
- 如图选择 Windows、x64、v20.18.0 (LTS),点击下载
  
- 下载完成
  
安装
- 打开node-v20.18.0-x64.msi
  
- next
  
- I accept打勾,next
  
- 自定义安装地址,我安到了F:Program Files odejs
  
- next、next、Install、Finish
  
  
  
  
设置国内镜像源(永久)
- win + R 输入 cmd,确定
  
- 输入 node -v,回车
  
- 输入npm -v,回车
  
- 输入 npm config set registry https://registry.npmmirror.com,回车
  
- 输入npm config get registry,回车
  
- 关闭窗口,设置完成