`apm publish minor` cause an error of "you do not have access"
juggernautjp opened this issue · 1 comments
juggernautjp commented
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
I want to publish my package of juggernautjp/atom-i18n-beta.
But I can not publish it, because apm publish minor
cause an error of "you do not have access".
Steps to Reproduce
- Create new repository on GitHub.
- Clone it to my local repository.
- Add all package files, including JavaScript source code, package.json, etc.
- Execute
git add -A
,git commit
andgit branch -M main
- Execute
git push -u origin main
- Execute
apm publish minor
Expected behavior:
My package of juggernautjp/atom-i18n-beta is registered on atom.io/packages,
and we can install the atom-i18n-beta
on Atom.
Actual behavior:
Executing apm publish minor
cause the following error messages:
PS F:\atom-i18n-beta> apm publish minor
Registering atom-i18n-beta failed
Registering package in juggernautjp/atom-i18n-beta repository failed: That repo does not exist, isn't an atom package, or you do not have access
Reproduces how often:
always
Versions
Atom : 1.57.0
Electron: 9.4.4
Chrome : 83.0.4103.122
Node : 12.14.1
OS : Windows10
Npm : 6.14.13
Python : 3.9.5
Additional Information
I tried the following options:
- Register the token by
atom login
. (confirm the message of "Saving token to Keychain done") - After delete authenticatoin key of
git.https://github.com
, and register my two kind of keys bygit push
.
which are "1. Web browser" and "2. Personal access token". (confirm the message of "Everything up-to-date")
juggernautjp commented
According to the article of Atom Discuss, Publishing for the first time: “Registering package failed”, I can fix this bug.
The following command fix this bug, so I close this issue:
git checkout -b master
git push -u origin master
apm publish minor