How to run someone else's Vue project when running a Vue project for the first time

1. Open the project in the compiler. If there are the following two folders, delete them first. This is generated after running other people’s compilers, so don’t be afraid to delete them.

 

2. Create a new terminal and enter "npm install"

      This is because the node_modules file downloads the project dependency file, which is equivalent to a plug-in under maven. If the file you bring does not have a node_modules file, it cannot be used. Use this npm statement to download the dependency file.

If the new terminal fails, on the right side of the project, find the outermost folder, right click, "open in integrated terminal", enter "npm install", the outermost folder is as follows: not "login-register-vue"

3. View the package.json file

        Equivalent to the pom file, that is, the log, you can see the dependent packages downloaded by the project in the dependencies attribute

4、

        If the scripts have a start command as follows, enter the content of the start command

        If not, type "npm run serve"

 5. Terminal after running

6. Hold down the ctrl key, click on the content after local, and the browser will automatically open the project home page

 

7. For other problems (install node.js, vue), you can watch the video

Guess you like

Origin blog.csdn.net/qq_45947664/article/details/126917009
Recommended