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

**URL:** <https://travis-ci.community/t/npm-err-404-not-found-har-validator-5-1-2/886>\
**Category:** Node.js\
**Created:** [November 14, 2018, 4:08am UTC](https://travis-ci.community/t/npm-err-404-not-found-har-validator-5-1-2/886 "2018-11-14T04:08:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![williamli](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/williamli/32/396_2.png) [@williamli](https://travis-ci.community/u/williamli)\
**Post date:** [November 14, 2018, 4:08am UTC](https://travis-ci.community/t/npm-err-404-not-found-har-validator-5-1-2/886/1 "2018-11-14T04:08:18Z")

</div>

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](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
```

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [November 14, 2018, 3:03pm UTC](https://travis-ci.community/t/npm-err-404-not-found-har-validator-5-1-2/886/2 "2018-11-14T15:03:42Z")

</div>

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

Please update your dependencies.

---

<div class="post-metadata">

**Author:** ![hodgef](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/hodgef/32/466_2.png) [@hodgef](https://travis-ci.community/u/hodgef)\
**Post date:** [November 14, 2018, 3:20pm UTC](https://travis-ci.community/t/npm-err-404-not-found-har-validator-5-1-2/886/4 "2018-11-14T15:20:02Z")

</div>

@BanzaiMan is right, just run

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

---

<div class="post-metadata">

**Author:** ![williamli](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/williamli/32/396_2.png) [@williamli](https://travis-ci.community/u/williamli)\
**Post date:** [November 14, 2018, 6:26pm UTC](https://travis-ci.community/t/npm-err-404-not-found-har-validator-5-1-2/886/5 "2018-11-14T18:26:18Z")

</div>

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.
