Open CiaranMn opened 2 years ago
I highly doubt this could solve the problem but have you tried doing it with (https://www......) While I was using http requests with python it depended on if it was https\http as well as having www in the url. Python3 ~requests (uses www.google.com) <----format python3 ~urllib3(uses https\http://www.google.com) <----formatt maybe with NPM this is the same problem
I highly doubt this could solve the problem but have you tried doing it with (https://www......) While I was using http requests with python it depended on if it was https\http as well as having www in the url. Python3 ~requests (uses www.google.com) <----format python3 ~urllib3(uses https\http://www.google.com) <----formatt maybe with NPM this is the same problem
I have tried this, it didn't help, but thanks for the suggestion!
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
I cannot use an
automation
token to callnpm hook add [package] [endpoint] [secret]
Instead, I receive the following error:
I can call
npm hook add
using apublish
token.Expected Behavior
I should be able to use an
automation
token to callnpm hook add
.The use case is to programmatically add hooks for packages of interest, without needing to disable 2FA completely on the account in question.
Steps To Reproduce
.npmrc
npm hook add [some-package] [some-endpoint] [some-secret]
(add--no-workspaces
if necessary for local config to take effect)publish
token for the same userEnvironment
8.18.0
18.7.0
MacOS 12.4
Macbook Pro
; //registry.npmjs.org/:_authToken = (protected) ; overridden by project cache = "/Users/Ciaran/.npm"
; "project" config from /Users/ciaran/[project-path]/.npmrc
//registry.npmjs.org/:_authToken = (protected)
; "cli" config from command line options
workspaces = false
; node bin location = /Users/ciaran/.nvm/versions/node/v18.7.0/bin/node ; node version = v18.7.0 ; npm local prefix = /Users/ciaran/[project-path] ; npm version = 8.18.0 ; cwd = /Users/ciaran/[project-path] ; HOME = /Users/ciaran ; Run
npm config ls -l
to show all defaults.