npm ERR! 404 Not Found: event-stream@3.3.6

前端 未结 6 490
青春惊慌失措
青春惊慌失措 2020-12-12 20:45

I am trying to deploy my project and I\'m suddenly getting this error.

npm ERR! 404 Not Found: event-stream@3.3.6

6条回答
  •  有刺的猬
    2020-12-12 21:40

    As mentioned in the comments, the underlying issue was the package-lock.json (the lockfile) contained a deprecated package. Deleting the lockfile and re-installing the dependencies resolved the issue.

    The fastest way to do this is these 2 steps:

    • delete the package-lock.json file
    • type npm i (or npm install) to re-install dependencies

提交回复
热议问题