1. 下载长期保护版本
2. 留神放进一个没有空格的目录下
3. 抉择
4. 在node目录下新建
node_globalnode_cache
5. 批改好.npmrc
npm config set prefix "D:\node\node_global"
npm config set cache "D:\node\node_cache"
增加全局包的环境变量
D:\node\node_global
6. 装置yarn
npm i -g yarn
淘宝镜像
yarn config set registry https://registry.npm.taobao.org
7. 装置vue
npm i -g vuenpm i -g @vue/cli
8. 装置pnpm
npm i -g pnpm
[[pnpm]]