question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fix har-validator dependency

See original GitHub issue

Summary

har-validator has a version mismatch (see https://github.com/ahmadnassri/node-har-validator/issues/113) in which the npm version is the 5.1.3, but the package.json says 5.1.2. This leads to an error doing a npm install in a project depending on your module.

Simplest Example to Reproduce

npm install in a project with a dependency to har-validator@5.1.2

Expected Behavior

npm install should run smoothly

Current Behavior

npm ERR! code ETARGET
npm ERR! notarget No matching version found for har-validator@5.1.2
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget 
npm ERR! notarget It was specified as a dependency of 'request'
npm ERR! notarget 

Possible Solution

Update dependency to be "har-validator": "~5.1.3" instead of "har-validator": "~5.1.0"

Your Environment

software version
request 2.88.0
node 8.11.3
npm 6.4.1
Operating System Linux Mint

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:5

github_iconTop GitHub Comments

2reactions
tenkillercommented, Nov 16, 2018
1reaction
Keekuuncommented, Nov 19, 2018

Thanks, I’ve just solved it with the command “npm install har-validator”

Read more comments on GitHub >

github_iconTop Results From Across the Web

har-validator - npm
Extremely fast HTTP Archive (HAR) validator using JSON Schema. Install. npm install har-validator. CLI Usage.
Read more >
npm ERR! 404 Not Found: har-validator@5.1.2 - Stack Overflow
After doing a lot of testing I found that there was an old package-lock.json lying around in the application. Deleting the package-lock.json ...
Read more >
har-validator vulnerabilities - Snyk
version published direct vulnerabilities 5.1.5 29 Jul, 2020 0. C. 0. H. 0. M. 0. L 5.1.4 29 Jul, 2020 0. C. 0. H. 0....
Read more >
Npm install error(fails) - M220JS - MongoDB
npm WARN deprecated har-validator@5.1.3: this library is no ... npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, ...
Read more >
Error log like this, how to fix it? - Glitch Support
npm WARN deprecated har-validator@5.1.5: this library is no longer supported 3:36 AM npm WARN deprecated request-promise@4.2.6: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found