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

Getting a 404 on an npm install for har-validator-5.1.2.tgz #113

Closed
ToobzMD opened this issue Nov 12, 2018 · 21 comments
Closed

Getting a 404 on an npm install for har-validator-5.1.2.tgz #113

ToobzMD opened this issue Nov 12, 2018 · 21 comments

Comments

@ToobzMD
Copy link

ToobzMD commented Nov 12, 2018

When I run an npm install, I am now getting a 404 on the har-validator-5.1.2.tgz package. This just started occurring over the weekend.

15420 error code E404
15421 error 404 Not Found: har-validator@https://registry.npmjs.org/har-validator/-/har-validator-5.1.2.tgz

NPM version: 5.6.0
Node version: 8.9.4

@kevincolten
Copy link

@ahmadnassri There is a version mismatch for this package and the npm/yarn repos. The current version is 5.1.2 and it is published under 5.1.3

@nullpointer77
Copy link

@kevincolten I hear you, but there are many old versions of various npm libs that are specifically looking for 5.1.2. protactor being one of them. I don't see a way to redirect specific npm packages that I don't control. Would you be able to push whatever the latest is out as 5.1.2 out to the npm repo?

@bdunn313
Copy link

bdunn313 commented Nov 13, 2018

Anyone have a solution for this?

Edit:
I assume most people will be able to avoid having to take the steps I did, but just in case I'll document what worked for me.

As @danoc wrote below, bumping my package version ultimately fixed this for me, but not until I had manually removed har-validator@5.1.2 from my yarn.lock file.

I'd try other techniques first, but manually editing yarn.lock, upgrading my dependency (cypress), and then re-running yarn to fix the lock file did the trick for me.

@danoc
Copy link

danoc commented Nov 13, 2018

Was able to work around this by bumping up the version of the package I had that depended on har-validator.

If using Yarn, you can figure this out by running yarn why har-validator.

@cdimascio
Copy link

cdimascio commented Nov 13, 2018

I was able to fix one of two projects by uninstalling and reinstalling the package with the dependency on har-validator.

For some reason, this didn't help with my second project. To resolve that one, I replaced the har-validator entry in package-lock.json with this:

    "har-validator": {
      "version": "5.1.3",
      "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz",
      "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==",
      "requires": {
        "ajv": "^6.5.5",
        "har-schema": "^2.0.0"
      }
    }

That resolved my second project.

hope this helps

@bambielli
Copy link

Installing har-validator 5.1.3 in my project solved the issue for me.
Hope this is fixed soon, though.

@nullpointer77
Copy link

@cdimascio is my hero for the day. This corrected my problem.

@Kmaschta
Copy link

Does someone have contacted NPM about that issue?

@guanxf
Copy link

guanxf commented Nov 13, 2018

update the package (like request 2.88.0 dependency of har-validator ~5.1.0)

@hodgef
Copy link

hodgef commented Nov 14, 2018

This issue seems to be causing my Travis CI tests to fail early. Reached out to npm support about it to see if they can redirect 5.1.2 -> 5.1.3
error

Edit: npm install har-validator@latest --save-dev fixes it.
https://travis-ci.community/t/npm-err-404-not-found-har-validator-5-1-2/886

Regards

@CS-Tao
Copy link

CS-Tao commented Nov 15, 2018

Delete yarn.lock or package-lock.json and install dependencies again fixed my problem. A new patch version v5.1.3 was linked in my new lock file.
https://github.com/CS-Tao/whu-library-seat-mobile/blob/fb2e1b994c1a1af03b47f7692528b7d9f22b0c8e/yarn.lock#L3360

@octogonz
Copy link

There is a version mismatch for this package and the npm/yarn repos. The current version is 5.1.2 and it is published under 5.1.3

@kevincolten how did this problem occur? The behavior seems as if someone ran npm unpublish har-validator@5.1.2 after the package was originally published. (?)

@rubensa
Copy link

rubensa commented Nov 16, 2018

There is a version mismatch for this package and the npm/yarn repos. The current version is 5.1.2 and it is published under 5.1.3

@kevincolten how did this problem occur? The behavior seems as if someone ran npm unpublish har-validator@5.1.2 after the package was originally published. (?)

Unpublish confirmation:
#112 (comment)

@ahmadnassri
Copy link
Owner

closing this to continue the discussion in #112

MJJoyce added a commit to NASA-AMMOS/AIT-GUI that referenced this issue Nov 27, 2018
There's an issue with har-validator version 5.1.2 on npm. Manually
updating package-lock to deal with this for now.

ahmadnassri/node-har-validator#113
@Steffi3rd
Copy link

I was able to fix one of two projects by uninstalling and reinstalling the package with the dependency on har-validator.

For some reason, this didn't help with my second project. To resolve that one, I replaced the har-validator entry in package-lock.json with this:

    "har-validator": {
      "version": "5.1.3",
      "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz",
      "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==",
      "requires": {
        "ajv": "^6.5.5",
        "har-schema": "^2.0.0"
      }
    }

That resolved my second project.

hope this helps

That worked for me. Don't know why... ^^ Thanks

@mehsan1
Copy link

mehsan1 commented Jan 3, 2019

All you need to do is delete "package-lock.json" and run command "npm install"

@blessochampion
Copy link

Yarn install fixed this for me.

daniellandau added a commit to daniellandau/atomic-blocks that referenced this issue Jan 16, 2019
muellermartin added a commit to muellermartin/website that referenced this issue Feb 20, 2019
Version 5.1.2 of har-validator was renamed to 5.1.3 and therefore the
old package is not available anymore and causes an 404 error upon
retrieval.

See ahmadnassri/node-har-validator#113
jonas32 pushed a commit to savetheinternetinfo/website that referenced this issue Feb 20, 2019
Version 5.1.2 of har-validator was renamed to 5.1.3 and therefore the
old package is not available anymore and causes an 404 error upon
retrieval.

See ahmadnassri/node-har-validator#113
fionera pushed a commit to savetheinternetinfo/website that referenced this issue Feb 22, 2019
Version 5.1.2 of har-validator was renamed to 5.1.3 and therefore the
old package is not available anymore and causes an 404 error upon
retrieval.

See ahmadnassri/node-har-validator#113
@taufik1207
Copy link

I was able to fix one of two projects by uninstalling and reinstalling the package with the dependency on har-validator.

For some reason, this didn't help with my second project. To resolve that one, I replaced the har-validator entry in package-lock.json with this:

    "har-validator": {
      "version": "5.1.3",
      "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz",
      "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==",
      "requires": {
        "ajv": "^6.5.5",
        "har-schema": "^2.0.0"
      }
    }

That resolved my second project.

hope this helps

Thanks u, you my hero..

zoncoen added a commit to zoncoen/hugo_theme_pickles that referenced this issue Jul 8, 2019
mdentremont added a commit to mdentremont/ngx-treeview that referenced this issue Aug 12, 2019
snaka added a commit to snaka/skill-tcfm-player that referenced this issue Dec 12, 2019
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