fix har-validator dependency
See original GitHub issueSummary
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:
- Created 5 years ago
- Reactions:8
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is the reason why 5.1.2 is no longer found. https://github.com/ahmadnassri/node-har-validator/issues/112#issuecomment-437378269
Thanks, I’ve just solved it with the command “npm install har-validator”