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] Unable to configure hook #7145

Closed
2 tasks done
Goralt opened this issue Jan 17, 2024 · 1 comment
Closed
2 tasks done

[BUG] Unable to configure hook #7145

Goralt opened this issue Jan 17, 2024 · 1 comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x

Comments

@Goralt
Copy link

Goralt commented Jan 17, 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

When I'm trying to configure a new npm hook using npm hook add <package> <hook-url> <secret> I'm getting a 401 error when I login into my npm account my user is connected to paid org so It should work for me.
I also tried to use the yarn registry and got the same error.

Expected Behavior

I expected that the hook will be configure.

Steps To Reproduce

login to your npm account using npm login
run npm hook add <package> <hook-url> <secret>

Environment

  • npm: 10.3.0
  • Node.js: 18.17.1
  • OS Name: Ubuntu 20.04
  • System Model Name: Macbook Pro
  • npm config:
; "user" config from /Users/goral/.npmrc

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

; node bin location = /Users/goral/.nvm/versions/node/v18.17.1/bin/node
; node version = v18.17.1
; npm local prefix = /Users/goral/Development/npm-webhook-test/goral-personal-test
; npm version = 10.3.0
; cwd = /Users/goral/Development/npm-webhook-test/goral-personal-test
; HOME = /Users/goral
; Run `npm config ls -l` to show all defaults.
@Goralt Goralt added Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x labels Jan 17, 2024
@wraithgar
Copy link
Member

This does not appear to be an issue w/ the npm cli itself. This repo is for tracking bugs w/ the cli, not the registry. Registry issues should go through https://www.npmjs.com/support

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 Release 10.x
Projects
None yet
Development

No branches or pull requests

2 participants