Unfortunately, even though npm publish now correctly sends Authorization: Bearer abc where abc is my personal token, I am still getting 401 Unauthorized.
I wonder if it’s related to my issue. I’m experiencing the same but with nuGet repository using the DotNet CLI to push packages with an API key with apiand write scopes. I opened a question at stack overflow but so far no answer.
Does anybody have any answer for the issue with npm? Maybe I’d help with my nuget issue
@diegosaswYou are getting a 401 error when you try and publish a NuGet package? The access token is set to API? Please feel free to open an issue and assign it to me.
Hi earshinov, in my case it was the path to allocate the NPM package, you have to put package on an unique name project and you must have permissions over that project and path.
In step number 3 you can see that the group and project must be the same with the name of your package.
3. Create project in GDK with group name foo and project name bar