Home >Web Front-end >Vue.js >vue scaffolding installation steps

vue scaffolding installation steps

藏色散人
藏色散人Original
2021-09-02 14:16:3541351browse

vue scaffolding installation steps: 1. Install the node environment; 2. Install the vue-cli scaffolding through "npm install -g vue-cli"; 3. Choose to install the plug-in according to the prompts; 4. Install project dependencies; 5 , run "npm run dev".

vue scaffolding installation steps

The operating environment of this article: windows7 system, vue/cli version 3.12.1, DELL G3 computer.

vue scaffolding installation steps

Before installation, check whether the node environment has been installed. If so, we will install the next vue-cli. If not, we will Install the node environment first.

vue scaffolding installation steps

Install the vue-cli scaffolding. The installation code is: npm install -g vue-cli. What we choose here is global installation. After installation, create the project.

vue scaffolding installation steps

Then follow the prompts to choose whether to install the plug-in. If it is installed, select Yes. If it is not installed, select No. Until the plug-in selection is completed.

vue scaffolding installation steps

After that, we cd to switch to the project directory, and then install the project dependencies. The installation code of the project dependencies is: npm install

vue scaffolding installation steps

After the dependency installation is completed, our scaffolding is basically installed. Let's take a look at what files our project has.

vue scaffolding installation steps

After all the prelude preparations are completed, our vue-cli scaffolding is completed, and we will start the project next. The code is: npm run dev

vue scaffolding installation steps

After the scaffolding is run, port 8080 will be opened by default. If the system automatically jumps to this web page, it means that our scaffolding installation is complete. Then we can fill in our project in the scaffolding.

vue scaffolding installation steps

Note

vue-cli will install some plug-ins by default, we can selectively install these plug-ins

It is recommended that novices use it directly Scaffolding, do not create pure vue projects

Related recommendations: "vue.js tutorial" "The latest 5 vue.js video tutorial selections"

The above is the detailed content of vue scaffolding installation steps. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn