webpack-dev-server error on npm start

前端 未结 2 687
面向向阳花
面向向阳花 2021-01-28 06:37

I am trying to run npm start on ng2-admin,all was working untill I did npm update to try to update the pacakages,

after that did npm start and have an error:

         


        
相关标签:
2条回答
  • 2021-01-28 07:03

    change dependency in package.json to

    "webpack-dev-server": "2.1.0-beta.10", Instead of something like

    "webpack-dev-server": "^2.1.0-beta.9",

    run npm install or npm update afterwards.

    0 讨论(0)
  • 2021-01-28 07:07

    The relevant part of the error message is : listen EADDRINUSE 127.0.0.1:8080. That means that webpack-dev-server is trying to run on 127.0.0.1:8080, but the address and port is already in use.

    Try opening your browser and typing 127.0.0.1:8080 into the address bar. Perhaps there is another server running on that port already. Run jobs to check for background processes.

    0 讨论(0)
提交回复
热议问题