vue前端启动报错 This is probably not a problem with npm. There is likely additional logging output above.

开发基于spring cloud 微服务框架时,启动前端vue项目报错,如下:

 

vue前端启动报错 This is probably not a problem with npm. There is likely additional logging output above.

 

解决办法:

 第一步:开始怀疑是npm版本更新的问题,在npm install 后执行 npm i -D [email protected] 然后运行 npm run dev

               依旧报错,接着查原因:发现:

               vue前端启动报错 This is probably not a problem with npm. There is likely additional logging output above.

 

               Error: listen EADDRINUSE 0.0.0.0:3000

               这句话的意思是端口已经被占用 ,进入cmd 输入命令:netstat -aon|findstr "3000"

        vue前端启动报错 This is probably not a problem with npm. There is likely additional logging output above.

 

 

          

继续 taskkill /pid 11692 -f 

vue前端启动报错 This is probably not a problem with npm. There is likely additional logging output above.

       接着重新 npm run dev  启动成功

   vue前端启动报错 This is probably not a problem with npm. There is likely additional logging output above.