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


#1

My builds (even reran of previously successful builds) are failing before of some npm error during the pre-script stages.

404 Not Found: har-validator@5.1.2

For example, this build https://travis-ci.com/ibcol/ibcol/builds/90942352

Setting up build cache
$ export CASHER_DIR=${TRAVIS_HOME}/.casher
0.17s$ Installing caching utilities
0.00s2.15sattempting to download cache archive
fetching de-de/cache-linux-trusty-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--node-node.tgz
fetching de-de/cache--node-node.tgz
fetching featuretranslationsde-de/cache-linux-trusty-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--node-node.tgz
fetching featuretranslationsde-de/cache--node-node.tgz
fetching dev/cache-linux-trusty-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--node-node.tgz
found cache
0.00s2.94sadding /home/travis/build/ibcol/ibcol/node_modules to cache
creating directory /home/travis/build/ibcol/ibcol/node_modules
$ node --version
v11.1.0
$ npm --version
6.4.1
$ nvm --version
0.33.11
41.88s$ npm ci 
npm WARN prepare removing existing node_modules/ before installation
npm ERR! code E404
npm ERR! 404 Not Found: har-validator@5.1.2

Travis CI "npm ci" failing early
#2

Version 5.1.2 does not exist. https://www.npmjs.com/package/har-validator

Please update your dependencies.


#4

@BanzaiMan is right, just run

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


#5

It’s strange, I think the developer removed version 5.1.2 as the same set of commits were working fine over the weekend.
Updated to 5.1.3 and everything is working fine now.