Visual Studio 2019 project configuration vue

First, the installation environment

1: Vue project all based on Node.js, you must first install NodeJS, Download: https://nodejs.org/zh-cn/

Installation nodejs, all the way next on the list

Additonal tools can not be installed.

Input cmd win + r

 

Input node -v and npm -v version information obtained proved fitted.

2: Make sure the Visual Studio 2019 environment: looking to expand the tool, there is no check NodeJs

Second, the use VS2019 to create a Vue project

The latter will add more than vue project, it is proposed to add a file management program name vue 

 

If you are familiar with the first two typescript can choose

Project name can default

FIG project directory structure as follows

 

Right project name: Select "Open command prompt here"

Run the command npm npm install -g (this command will Package all your items missing completion).

Then after the end of the run command npm run serve (which is the development environment for debugging commands that can automatically synchronize refresh the page after modifying the page)

Enter the browser address  http: // localhost: 8081 /   accessible to 

 

Published 12 original articles · won praise 0 · Views 655

Guess you like

Origin blog.csdn.net/oopxiajun2011/article/details/104869611