npm / registry-issue-archive

An archive of the old npm registry issue tracker

Home Page:https://npm.community

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Registry returns 404 for a package I have installed before

ryaninvents opened this issue · comments

I'm setting up a brand-new Ubuntu laptop to work with my projects, and I'm getting a 404 from the registry on a package I know I've successfully installed before. The 404 is being returned for natives@1.1.4.

To reproduce the issue, run:

mkdir test-case
cd test-case
npm init
# Accept all default values

npm install --save-dev gulp

My dependency on natives is via gulp@3.9.1 > vinyl-fs@0.3.14 > graceful-fs@3.0.11 > natives@1.1.4.

Error message:

npm ERR! code E404
npm ERR! 404 Not Found: natives@https://registry.npmjs.org/natives/-/natives-1.1.4.tgz

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ryan/.npm/_logs/2018-05-25T23_34_25_326Z-debug.log

See npm-debug.log for details.

➜  ~ node -v
v8.11.2
➜  ~ npm -v
5.6.0

Note: to me, this seems different from #327 since I am not publishing the package myself. However, it appears as though natives 1.1.4 came out 4 days ago, so it's possible the two issues have the same root cause.

Also seeing 404s: verbose stack Error: 404 Not Found: natives@https://registry.npmjs.org/natives/-/natives-1.1.4.tgz

npm ERR! code E404
npm ERR! 404 Not Found: natives@latest

I'm seeing 404s on natives@1.1.4 & babel@5.8.38 while building via Travis CI for projects that were previously building without errors and had no code changes.

I'm having the same issue locally and in cloud services in AWS.

$ node --version
v8.11.2
$ npm --version
5.6.0
$ nvm --version
0.33.11

same here, cant build!!! wtf npm

I tried specifying older versions in my package.json and am getting 404s on those as well. Tried 1.1.3, 1.1.2, 1.1.1, and 1.1.0

The status page said the problem is solved but I still having problem to install packages.

For example, https://www.npmjs.com/package/async-validator/v/1.8.2

npm return {"error":"Not found"} but the package exist and I install it yesterday.

Same issue here...

npm ERR! code E404
npm ERR! 404 Not Found: angular@1.6.10

Same...

npm ERR! code E404
npm ERR! 404 Not Found: async-validator@https://registry.npmjs.org/async-validator/-/async-validator-1.8.2.tgz

The issue still exists

Every body which area are you from?

Heard on reddit there were AWS outages on US East, here in SEAsia everything runs smoothly.

Edit: Might be related yarnpkg/yarn#5885

I have the same issue
error 404 Not Found: async-validator@https://registry.npmjs.org/async-validator/-/async-validator-1.8.2.tgz

Interesting... I am from Indiana, so that would make sense.

@xemasiv SEAsia

I don't think that is the same issue because I am get a json response {"error":"Not found"} instead of cloudflare 403.

our VSTS builds failed due to 404 error for https://registry.npmjs.org/async-validator/-/async-validator-1.8.2.tgz, now we are unable to publish any more. The build agent locates at Azure data center in US East.

P.S. I also got 404 and {"error":"Not found"} by accessing the link directly in Safari and I'm in China, this could be a global issue.

+1

@xemasiv Sydney, Australia

@xemasiv Tallahassee, FL

If someone need to get it working now, you can use Yarn registry https://registry.yarnpkg.com/ and revert it back later https://registry.npmjs.org/.

npm set registry https://registry.yarnpkg.com/

It has all the packages I needed and it is a reputable source.

@joshuaavalon tried the yarn registry and still got the same error, seemed yarn just redirects requests to npm official registry.

4512 silly mapToRegistry uri https://registry.yarnpkg.com/async-validator
4513 verbose addRemoteTarball https://registry.npmjs.org/async-validator/-/async-validator-1.8.2.tgz not in flight; adding
4514 verbose addRemoteTarball [ 'https://registry.npmjs.org/async-validator/-/async-validator-1.8.2.tgz',
4514 verbose addRemoteTarball 'b77597226e96242f8d531c0d46ae295f62422ba4' ]
4515 info retry fetch attempt 1 at 1:49:18 PM
4516 info attempt registry request try #1 at 1:49:18 PM
4517 http fetch GET https://registry.npmjs.org/async-validator/-/async-validator-1.8.2.tgz
...
4560 http fetch 404 https://registry.npmjs.org/async-validator/-/async-validator-1.8.2.tgz
4561 error fetch failed https://registry.npmjs.org/async-validator/-/async-validator-1.8.2.tgz
4562 warn retry will retry, error on last attempt: Error: fetch failed with status code 404
4563 info retry fetch attempt 2 at 1:49:28 PM
4564 info attempt registry request try #1 at 1:49:28 PM
4565 http fetch GET https://registry.npmjs.org/async-validator/-/async-validator-1.8.2.tgz
4566 http fetch 404 https://registry.npmjs.org/async-validator/-/async-validator-1.8.2.tgz
4567 error fetch failed https://registry.npmjs.org/async-validator/-/async-validator-1.8.2.tgz
4568 warn retry will retry, error on last attempt: Error: fetch failed with status code 404
4569 info retry fetch attempt 3 at 1:50:29 PM
4570 info attempt registry request try #1 at 1:50:29 PM
4571 http fetch GET https://registry.npmjs.org/async-validator/-/async-validator-1.8.2.tgz
4572 http fetch 404 https://registry.npmjs.org/async-validator/-/async-validator-1.8.2.tgz
4573 error fetch failed https://registry.npmjs.org/async-validator/-/async-validator-1.8.2.tgz

Facing the same issue, at Apache SkyWalking,

@LiangZugeng It is not redirect. I am able to download from https://registry.yarnpkg.com/async-validator/-/async-validator-1.8.2.tgz. From the error log, you seems still downloading from https://registry.npmjs.org/.

I removed my node_modules, set registry and replaced links in package-lock.json to ensure it downloads from https://registry.yarnpkg.com/.

For those that the file async-validator-1.8.2.tgz is missing

 "https://registry.npmjs.org/async-validator/-/async-validator-1.8.2.tgz: Request failed \"404 Not Found\"".

you also might use taobao (those are far away from USA) or yarn registry in the meantime.

yarn install --registry https://registry.npm.taobao.org/ --no-lockfile

It is complex process to change the register, considering Apache SkyWalking is not a nodejs project only. Hope this can be resolved soon.

I didn't want to start the changes.

@joshuaavalon I guess it's the package-lock.json issue, I will try to regenerate the file using yarn registry.

@juanpicado Taobao NPM registry was the first option I tried, with it the build agent spent 16 minutes to restore the packages (the machine locates @ central US in Azure data center) and still wan't able to finish the download with no output from npm install command (weird!).

P.S. Internet from US Azure to AliCloud Shenzhen data center in China seems also having some problems, our deployments all failed of pushing builds from US to AliCloud via SSH. Who said no deployments on Friday? Totally agree!

@LiangZugeng I just replaced them in notepad.

Okay folks, just wanted to let everyone know we're aware of what's causing this and I have a batch job running to fix it. I expect async-validator==1.8.2 specifically to be available again in ~1 hour, will update this issue with more detail later.

Update: I've manually restored the missing tarball for async-validator@1.8.2, and installs should start working again.

I can confirm it's working for me now. Thanks!

@chrisdickinson It works now. Thank you!

@chrisdickinson Great job! It has worked for me now. Thanks!

Works for me now too!