Install Node.js
Download Link: http://nodejs.cn/download/
Once downloaded directly installed, installing the input node -v in cmd, displays the version number is the successful installation.
Installation vue-cli3
Note:
Version 3.0 after the needs of ≥ 8.9 node.js;
VUE-CLI3 package name changed by the vue-cli @ vue / cli;
Global installed an older version of vue-cli (1.x or 2.x) must first uninstall it, otherwise skip this step:
//卸载3.0之前的版本
npm uninstall vue-cli -g
//卸载3.0以上的版本
npm uninstall -g @vue/cli
First npm warehouse address to Taobao mirror (this will be much faster), then install:
npm config set registry https://registry.npm.taobao.org --global
npm install -g @vue/cli
Enter vue -V, the version number is the emergence of a successful installation.