1.去官网下载node.js
Node.js (nodejs.org)
2.安装node.js
3.查看node.js版本
node -v

4.查看npm版本
npm -v

5.升级npm版本
npm install -g npm


6.配置淘宝镜像,查看镜像源
npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global

网友评论