Skip to main content

Node 基础

Node 安装

info
  • node ubuntu 安装
info
  • windows 安装

镜像配置

单次设置

npm install [name] --registry=https://registry.npmmirror.com

全局设置

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

yarn 安装

 npm install -g yarn

# 设置镜像

yarn config set registry https://registry.npmmirror.com/

本系统运行在 Node.js@v16.17.1 上