This is a (multiple allowed):
npm build results in the following error.
npm ERR! code E404
npm ERR! 404 Not Found: [email protected]
The build should complete, and shouldn't be using package links that don't resolve on the NPM Registry. The event-stream package lists https://registry.npmjs.org/event-stream/-/event-stream-3.3.6.tgz as its "resolved" parameter in the package-lock.json that is available when downloading. All the other packages are looking for event-stream 3.3.4, which does have a link that resolves on the NPM registry.
The build does not complete, because the version of event-stream specified (3.3.6) does not have a .tgz available for download on the NPM registry.
Worth noting, this is easily resolved by deleting the existing package-lock.json and running npm install again.
event-stream is a malicious package, although npmjs.org removed the package, it should be also removed in the package-lock.json.
https://snyk.io/blog/malicious-code-found-in-npm-package-event-stream
Fixed
Most helpful comment
Worth noting, this is easily resolved by deleting the existing package-lock.json and running npm install again.