Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] npm publish tells me I have to make a payment, but its an open source repository I am trying to publish #7677

Open
2 tasks done
akc42 opened this issue Jul 22, 2024 · 1 comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps

Comments

@akc42
Copy link

akc42 commented Jul 22, 2024

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

I use the command npm publish and get a request to open a browser;
I open the browser and correctly enter the code from google autheticator.
The comand line continues but then says it cannot proceed because I have to pay for private repositories

However this repository is not private (akc/html-editor.get)

Expected Behavior

It immediately publishes my package (@akc42/html-editor)

Steps To Reproduce

npm publish

Environment

npm -v 10.8.2
node -v v20.9.0
OS Name: Debian 6.1.99-1
System: AMD64
npm config -r ; "user" config from /home/alan/.npmrc

//registry.npmjs.org/:_authToken = (protected)

; node bin location = /home/alan/.nvm/versions/node/v20.9.0/bin/node
; node version = v20.9.0
; npm local prefix = /home/alan/dev/html-editor
; npm version = 10.8.2
; cwd = /home/alan/dev/html-editor
; HOME = /home/alan
; Run npm config ls -l to show all defaults.

@akc42 akc42 added Bug thing that needs fixing Needs Triage needs review for next steps labels Jul 22, 2024
@ljharb
Copy link
Contributor

ljharb commented Jul 22, 2024

Try npm publish --access=public. Scoped packages default to private.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps
Projects
None yet
Development

No branches or pull requests

2 participants