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.

Getting 404 Registry returned when trying to run `npm install`

See original GitHub issue

Edited by @ndelangen:

I can see quite a bit of traffic to this issue, so I hope by editing this first message I will save a lot of people some time.

This problem occurs for companies that must use private npm proxies, mostly old ones do not properly support npm organisations. Or they are configured to not support them. An example would be artifactory.

Notify your support team about it to get support. More and more open source will eventually (have to) migrate to organisations because the global registry is getting crowded and package names are being squated.

But understandable you want a solution now,
This solution will likely work for you:

create a .npmrc-file in the root of your project (or higher in the directory-tree) with:

@storybook:registry=https://registry.npmjs.org/

If you’re on a version of storybook lower than 3 you should use: @kadira:registry=https://registry.npmjs.org/

If the .npmrc file already exists, you can just append to the bottom of the file.

Since storybook has some dependencies in other npm-organisations like @types, you will probably need to add those as well.

@types:registry=https://registry.npmjs.org/

Original message:

Simply cloned your repo and ran npm install and got the error:

npm ERR! 404 Registry returned 404 for GET on https://npm-proxy.fury.io/C__hqNZ_HngaWmEnB-ps/massdrop/@kadira%2fstorybook
npm ERR! 404
npm ERR! 404 '@kadira/storybook' is not in the npm registry.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:32 (13 by maintainers)

github_iconTop GitHub Comments

45reactions
luandrocommented, Apr 2, 2016

Yea, I was using sinopia. Doing a npm set registry https://registry.npmjs.org/ solved the problem.

13reactions
gthomas-appfoliocommented, Sep 23, 2016

Great, thank you. This helped:

The solution is to set a registry for modules of specific scope. You can add the following to your project’s .npmrc file

@kadira:registry=https://registry.npmjs.org

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing npm package fails with 404 - node.js - Stack Overflow
Try first this commands (in windows run as administrator) npm config set registry http://registry.npmjs.org npm install -g @angular/cli.
Read more >
Surviving the npm ERR! 404 with private packages
How to fix a common issue when installing private packages with npm · install latest npm version · login (if you are downloading...
Read more >
(Solved) npm ERR! code E404 while working with Power ...
Solution ; STEP 1 : run below commands to solve this issue. npm config set registry http://registry.npmjs.org ; STEP 2 : run below...
Read more >
404 Issue with npm install - Visual Studio Feedback
I am trying to install npm packages through my TFS build. ... Getting 404 Registry returned when trying to run npm install.
Read more >
Common errors | npm Docs
Possible temporary npm registry glitch, or corrupted local server cache. Run npm cache clean and/or try again later. · This can be caused...
Read more >

github_iconTop Related Medium Post

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