I. Scene restoration

When we cloned a front-end Vue project on Github and couldn’t wait to run it, we got the following error just after entering the command to start the project.

1. The wrong one

2. Error 2

Ii. Problem analysis

Don’t panic when you encounter a problem. The most important thing for developers is to find the correct error message. Because these error information can truly feedback the problem, of course, sometimes we can not immediately judge the problem according to the error information, so we need to be patient to analyze.

1. Error number one

  • First, look at the error message
  • If you have some development experience, you should know that you don’t have a Node environment, so you need to install the Node environment. That’s the best. If you are a beginner and lack of experience in development, it doesn’t matter, my advice is not to ask others first, first use search engines to locate (100 knowledge valley), if the above three search engines have not found the problem, then ask others.

2. Error two

  • This error is caused by entering the project startup command when you already have the Node environment
  • At this point, you can remove the project dependencies “node_modules” file and start NPM install again

Third, summary

1. Problems are not terrible, which shows that we need to master and improve, summarize and record more, which are valuable assets on our development road in the future.

2. New partners should be good at using search engines (the premise is to go through their own thinking), after Baidu Zhihu Google has not found the question to ask people around, remember not to close doors.