vue-cli3 installation

1. If vue-cli originally installed, you need to uninstall command: npm uninstall vue-cli -g; this step if a problem occurs, it may be npm global path is changed,
run the following command: npm config set prefix / usr / local
2. installation vue-cli3, npm install -g @ vue / cli, vue cli changed by the package name of vue-cli @ vue / cli
can use the default installation, the installation can also be used manually. Vue ui can also be operated using a graphical interface
created using the Create xxx VUE
3. the installation is complete, you can use vue --version to see whether the version 3.x

Guess you like

Origin www.cnblogs.com/wangxi01/p/11589898.html