Home >Web Front-end >Vue.js >How to start a project in vuejs development

How to start a project in vuejs development

青灯夜游
青灯夜游Original
2021-09-15 16:07:399068browse

How to start a project with vuejs: 1. Install node.js; 2. Install "@vue/cli"; 3. Use the "vue create project name" command to create a project; 4. Use the cd command to enter vue In the project directory; 5. Execute the "npm run serve" command to start the project.

How to start a project in vuejs development

The operating environment of this tutorial: windows7 system, vue2.9.6 version, DELL G3 computer.

Prerequisite: Install node.js

Start the vue project

  • If you want to start the vue project, There are two ways. The first is to use @vue/cli, and the second is to use webpack to build a Vue project from scratch. If you are a novice, it is recommended that you use the @vue/cli tool. cli is the loader that encapsulates webnpack. With plugin, you can quickly start the vue project; I am using @vue/cli below;
  • Enter the official website https://cli.vuejs.org/zh/
  • Install @vue /cli npm install -g @vue/cli
  • View @vue/cli version numbervue --version
  • vue create hello-worldCreate a project

How to start a project in vuejs development

Select manual selection

How to start a project in vuejs development

Select babel , css pre-processors, linter, unit testing, select and press Enter

How to start a project in vuejs development

How to start a project in vuejs development

How to start a project in vuejs development

How to start a project in vuejs development

How to start a project in vuejs development

How to start a project in vuejs development

#After successful installation

How to start a project in vuejs development

  • cd hello-world $ npm run serve Enter this command

How to start a project in vuejs development

    Open http://localhost:8080/ The following page will appear , indicating that the project was created and started successfully

1How to start a project in vuejs development

Related recommendations: "

vue.js Tutorial"

The above is the detailed content of How to start a project in vuejs development. 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