The process of building vue scaffolding is: first install node.js; then use npm to install vue-cil or use the "cnpm install -g vue-cli" command to install vue scaffolding; finally use vue scaffolding to build the vue project .
The operating environment of this article: windows7 system, vue2.0 version, Dell G3 computer.
Before building a vue project, you need to install vue's scaffolding and node.js. Let's take a look at the process of building vue scaffolding.
vue scaffolding construction process:
1. Install node.js
Download address: http://nodejs.cn/
After the installation is completed, you can Open the cmd console and enter the command above. When the version number appears, the installation is successful.
2. Install vue scaffolding
Install vue-cil globally, also It is the so-called scaffolding
1. Use npm to install (international open source library ecosystem)
2. Use cnpm to install vue scaffolding
cnpm install -g vue-cli
Finally check whether you have installed it: (vue -V) Remember -V here is the capital letter V
Then you can use vue scaffolding to build the vue project.
Related recommendations: "vue.js Tutorial"
The above is the detailed content of Vue scaffolding construction process. For more information, please follow other related articles on the PHP Chinese website!