【Vue.js】安装某个东西后出现错误Refused to load the image 'http://localhost:8080/favicon.ico' because it vio

我在安装axios之前,页面还是可以正常启动的,但是当我运行了下面的安装axios命令时

npm install axios

出现了以下的错误
在这里插入图片描述
在这里插入图片描述
在这之后,我以为自己的代码有错,或者在哪里引用了http://localhost:8080/favicon.ico这个东西,其实并没有找到,

很有可能是安装axios的时候,将某个配置文件给覆盖了(具体不知道),导致原有的配置找不到路径

解决办法:
重新安装npm

npm install

或者

cnpm install

在此启动npm run dev可以成功启动
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_42339197/article/details/103323137
今日推荐