Travis CI "npm ci" failing early

I’m reaching out today since my Travis CI are suddenly failing early (even before npm install). it seems that the package “har-validator”, version 5.1.2 has either been unpublished or skipped over, the correct version being 5.1.3. This causes Travis CI builds to fail when it tries to run “npm ci”.

Here’s an error illustrating the issue:

Any way to fix this?


You have a dependency on this version, probably in package-lock.json. You’ll have to update that.

Same as Npm ERR! 404 Not Found: har-validator@5.1.2

You are right!

npm install har-validator@latest --save-dev

Did the trick.