npm ERR! A complete log of this run can be found in:

时间:2025-03-05 07:41:50

第一次接触vue项目的时候,拿了别人的代码,安装了依赖包以后一运行,发现有报错

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-01-11T00_39_46_680Z


百度以后基本上都说是npm的版本的问题,但是我更新了npm以后并没有解决问题

其实主要的报错是在这一句

Error: listen EADDRNOTAVAIL :xxxx

解决方法:这时候只需要将config文件夹里的 里的 host改成自己的ip就行

没有config文件夹的小伙伴试着在里找找~~