npm ERR

Don’t panic when you encounter npm ERR! . . .

 For example, for errors like the above, you can look up the error log.

 this is the key of the problem.

Solutions, found online, that solve the problem:

1. Go to the project folder and delete the node_modules file and package-lock.json file (you can back up the project first just in case). Note that it is not package.json (if it cannot be deleted, check to see if the project is open, close it and try again)


2. Run npm install under the project


3. Continue to run npm run dev (this is not necessarily dev, it depends on the configuration of your actual project, just start the project)

 The problem was solved and the operation was successful. . . .

I am not good at front-end, I am an amateur at front-end, I focus on back-end, and I also want to expand to other voices. The technical road is very bumpy, so I will continue to build bricks.

Guess you like

Origin blog.csdn.net/y15201653575/article/details/130421820