先去这里https://nodejs.org/zh-cn下载安装包
安装参考:https://blog.csdn.net/jike11231/article/details/107834744
所有用到的命令:
npm -v
node -v
npm config set prefix "D:\nodejs\node_global"
npm config set cache "D:\nodejs\node_cache"
node list -global
npm list -global
npm config set registry=http://registry.npm.taobao.org
npm config list
npm config get registry
npm -v
npm install vue -g
npm install vue-router -g
npm install vue-cli -g
npm install webpack -g
vue -V