Git download source code and environment to build front-end (3)

learning target:

vue 新项目的 前端环境搭建

  • The vue project uses Visual Studio Code to develop the front-end project environment to build and configure related files

Steps:

Front-end:
The following figure shows the editor used by the front-end during development
insert image description here

Note: Sometimes localhost may not be easy to use when configuring, so we'd better configure it to point to our computer as 127.0.0.1
insert image description here

When using node.js and npm to start a project, we must pay special attention to the version of node.js and npm in our computer.
If you encounter the situation shown in the figure below, we need to be patient to solve it. (For this record, after uninstalling node, reinstalling the node tool and re-downloading it will work)
as shown in the figure:
insert image description here

The directory where the log file that reported the error in the above figure is located is as follows:
insert image description here

The list of error log files is shown in the figure below:
insert image description here


Summarize:

知识小结:

  • 1. Sometimes localhost may not be easy to use during configuration, so we'd better configure 127.0.0.1 to point to our computer

おすすめ

転載: blog.csdn.net/YHLSunshine/article/details/130392479