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


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

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
$ npm --version
$ nvm --version
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

Version 5.1.2 does not exist.

Please update your dependencies.


@BanzaiMan is right, just run

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


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.