[Vue.js] An error occurred after installing something Refused to load the image'http://localhost:8080/favicon.ico' because it vio

Before I install axios, the page can still start normally, but when I run the following install axios command

npm install axios

The following error occurred.
Insert picture description here
Insert picture description here
After this, I thought that my code was wrong, or where I referenced http://localhost:8080/favicon.ico, but I didn’t find it.

It is very likely that when installing axios, a certain configuration file was overwritten (I don't know the specifics), causing the original configuration to find the path

Solution:
reinstall npm

npm install

or

cnpm install

Start here to start npm run devsuccessfully
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_42339197/article/details/103323137