404 error while publishing packages that already exist
See original GitHub issueIβm trying to get Changesets setup for Slate using a --snapshot
release on a dev
tag, but running in to problems.
For some reason itβs failing with a 404
not finding the existing packages? Even though the npm info
lines clearly succeeded it still fails later on. The lines in question:
π¦ error 'slate@0.0.0-2021230191014' is not in the npm registry.
π¦ error You should bug the author to publish it (or use the name yourself!)
π¦ error
π¦ error Note that you can also install from a
π¦ error tarball, folder, http url, or git url.
π¦ error an error occurred while publishing slate-react: E404 Not Found - PUT https://registry.npmjs.org/slate-react - Not found
π¦ slate@0.0.0-2021230191014
And the full log (link to action):
Run yarn changeset version --snapshot
yarn changeset version --snapshot
yarn changeset publish --tag dev
shell: /usr/bin/bash -e {0}
env:
GITHUB_TOKEN: ***
NPM_TOKEN: ***
NODE_AUTH_TOKEN: ***
yarn run v1.22.5
$ /home/runner/work/slate/slate/node_modules/.bin/changeset version --snapshot
π¦ All files have been updated. Review them and commit at your leisure
Done in 0.54s.
yarn run v1.22.5
$ /home/runner/work/slate/slate/node_modules/.bin/changeset publish --tag dev
Package "slate-packages" must depend on the current version of "slate": "0.0.0-2021230191014" vs "*"
Package "slate-packages" must depend on the current version of "slate-history": "0.0.0-2021230191014" vs "*"
Package "slate-packages" must depend on the current version of "slate-hyperscript": "0.0.0-2021230191014" vs "*"
Package "slate-packages" must depend on the current version of "slate-react": "0.0.0-2021230191014" vs "*"
π¦ warn ===============================IMPORTANT!===============================
π¦ warn Packages will be released under the dev tag
π¦ warn ----------------------------------------------------------------------
π¦ info npm info slate
π¦ info npm info slate-history
π¦ info npm info slate-hyperscript
π¦ info npm info slate-react
π¦ info slate is being published because our local version (0.0.0-2021230191014) has not been published on npm
π¦ info slate-history is being published because our local version (0.0.0-2021230191014) has not been published on npm
π¦ info slate-hyperscript is being published because our local version (0.0.0-2021230191014) has not been published on npm
π¦ info slate-react is being published because our local version (0.0.0-2021230191014) has not been published on npm
π¦ info Publishing "slate" at "0.0.0-2021230191014"
π¦ info Publishing "slate-history" at "0.0.0-2021230191014"
π¦ info Publishing "slate-hyperscript" at "0.0.0-2021230191014"
π¦ info Publishing "slate-react" at "0.0.0-2021230191014"
π¦ error an error occurred while publishing slate-history: E404 Not Found - PUT https://registry.npmjs.org/slate-history - Not found
π¦ error
π¦ error 'slate-history@0.0.0-2021230191014' is not in the npm registry.
π¦ error You should bug the author to publish it (or use the name yourself!)
π¦ error
π¦ error Note that you can also install from a
π¦ error tarball, folder, http url, or git url.
π¦ error an error occurred while publishing slate-hyperscript: E404 Not Found - PUT https://registry.npmjs.org/slate-hyperscript - Not found
π¦ error
π¦ error 'slate-hyperscript@0.0.0-2021230191014' is not in the npm registry.
π¦ error You should bug the author to publish it (or use the name yourself!)
π¦ error
π¦ error Note that you can also install from a
π¦ error tarball, folder, http url, or git url.
π¦ error an error occurred while publishing slate: E404 Not Found - PUT https://registry.npmjs.org/slate - Not found
π¦ error
π¦ error 'slate@0.0.0-2021230191014' is not in the npm registry.
π¦ error You should bug the author to publish it (or use the name yourself!)
π¦ error
π¦ error Note that you can also install from a
π¦ error tarball, folder, http url, or git url.
π¦ error an error occurred while publishing slate-react: E404 Not Found - PUT https://registry.npmjs.org/slate-react - Not found
π¦ slate@0.0.0-2021230191014
π¦ error
π¦ slate-history@0.0.0-2021230191014
π¦ error 'slate-react@0.0.0-2021230191014' is not in the npm registry.
π¦ error You should bug the author to publish it (or use the name yourself!)
π¦ error
π¦ error Note that you can also install from a
π¦ error tarball, folder, http url, or git url.
π¦ error packages failed to publish:
π¦ slate-hyperscript@0.0.0-2021230191014
π¦ slate-react@0.0.0-2021230191014
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
404 error while publishing packages that already exist #550
I'm trying to get Changesets setup for Slate using a --snapshot release on a dev tag, but running in to problems.
Read more >Getting 404 when attempting to publish new package to NPM
When i try to publish in console by login with normal username gave me this error. publish Failed PUT 404 npm ERR! code...
Read more >404 error after a successful publish - MSDN - Microsoft
A 404 is a file not found error and has nothing to do with authentication. Have you verified the file exists? If the...
Read more >Receive 404 error when trying to npm publish instead of 401
The NPM software may not access the URL & GitLab doesn't want to disclose that the given URL exists or not. It returns...
Read more >Index Β· Npm registry Β· Packages Β· User Β· Help Β· GitLab
If you try to publish a package with a name that already exists within a given scope, you get a 403 Forbidden! error....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Iβve already posted this in the mentioned GitHub actionβs issue but since the last messages here refer to this problem I have thought that it might be worth mentioning it here as well.
Iβve created a PR that should, hopefully, help with @estrattonbaileyβs case here: https://github.com/changesets/action/pull/110
For any others running into thisβ¦
404
this is actually a permissions error on the NPM side of things, meaning something in the authentication isnβt properly working. (https://github.com/npm/cli/issues/1637)https://registry.npmjs.org
, you still need to manually set theregistry_url
key in theactions/setup-node
action for this to work. (https://github.com/actions/setup-node/issues/82)Once you fix that it works just fine.