Target
Use vscode to run vue projects in other people's projects
Work
-
install node
-
Check the installation status: open cmd, enter node -v and npm -v in turn, and check the version number, then the installation is successful.
-
Open the vue project with vscode
-
Use the shortcut key Ctrl+shift+Y to call out the console, click the terminal on the console, and enter npm install or npm i to add package dependencies.
The running results are as follows:
-
Finally, execute npm run dev to start running the project. This command will automatically run the project on the browser. The running result is shown in the figure below, which means the configuration is successful.
-
Click (ctrl+click) the URL http://localhost:80/ to get the running result