Getting 404 Registry returned when trying to run `npm install`
See original GitHub issueEdited 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:
- Created 7 years ago
- Reactions:7
- Comments:32 (13 by maintainers)
Top GitHub Comments
Yea, I was using sinopia. Doing a
npm set registry https://registry.npmjs.org/
solved the problem.Great, thank you. This helped: