Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix har-validator dependency #3054

Closed
Pipeman opened this issue Nov 13, 2018 · 5 comments
Closed

fix har-validator dependency #3054

Pipeman opened this issue Nov 13, 2018 · 5 comments

Comments

@Pipeman
Copy link

Pipeman commented Nov 13, 2018

Summary

har-validator has a version mismatch (see ahmadnassri/node-har-validator#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
@Keekuun
Copy link

Keekuun commented Nov 16, 2018

I have encountered the same error ,too. I'll try it your way. hope it works.

@Keekuun
Copy link

Keekuun commented Nov 16, 2018

But it doesn't work!

@tenkiller
Copy link

This is the reason why 5.1.2 is no longer found. ahmadnassri/node-har-validator#112 (comment)

@Pipeman
Copy link
Author

Pipeman commented Nov 16, 2018

@Keekuun that is strange. To solve this on an Angular7 project I simply had to install har-validator@5.1.3 as a direct dependency and so it worked

@Keekuun
Copy link

Keekuun commented Nov 19, 2018

Thanks, I've just solved it with the command "npm install har-validator"

mikeal pushed a commit that referenced this issue Nov 21, 2018
It seems that a new version of har-validator (5.1.2) may have been published, and then deleted. This PR explicitly sets the version to the latest patch, 5.1.3.

Closes #3054
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants