Run Vue project with vscode

Target

Use vscode to run vue projects in other people's projects

Work

  1. install node

  2. Check the installation status: open cmd, enter node -v and npm -v in turn, and check the version number, then the installation is successful.

  3. Open the vue project with vscode

  4. 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.
    insert image description here
    The running results are as follows:
    insert image description here

  5. 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.
    insert image description here

  6. Click (ctrl+click) the URL http://localhost:80/ to get the running result

Guess you like

Origin blog.csdn.net/someday____/article/details/126623381