Question: how do i publish a packageSee original GitHub issue
I have a group on gitlab.com and my verdaccio is configured but i got a access denied when trying to publish a package.
This is my configuration:
packages: '@*/*': # scoped packages access: $authenticated publish: $authenticated proxy: npmjs gitlab: true '**': access: $authenticated publish: $authenticated proxy: npmjs gitlab: true
I successfully logged in with
npm adduser --registry <url-here> after that i changed my package name to @GroupName/package-name but when i want to publish it to the registry i got a access denied.
user username is not allowed to publish package @GroupName/package-name : @GroupName/package-name
debug--- [gitlab] user found in cache: username authenticated, with groups: username,GroupName debug--- [gitlab] user: username denied from publishing package: @GroupName/package-name
So the question is what do i wrong? or is this kind of a bug? also my group name is case sensitive maybe thats the problemen same of the username authentication?
Hope you guys have some ideas 😉
- Created 5 years ago
Top GitHub Comments
Mmm nope, false alarm on my side. I was able to push, with a mix of uppercase / lowercase. Just be sure, I used
user as name and
GroupName as group. Then I modified my local
package.json to use the group and tried to publish, no issues (don’t mind the extra log messages, I modified them a bit in my local env):
info <-- 127.0.0.1 requested 'PUT /@GroupName%2fverdaccio-gitlab' trace--- [gitlab] authenticate called for user: user debug--- [gitlab] user: user found in cache, authenticated with groups: user,GroupName trace--- [gitlab] publish: checking group: user for user: user and package: @GroupName/verdaccio-gitlab trace--- [gitlab] publish: checking group: GroupName for user: user and package: @GroupName/verdaccio-gitlab debug--- [gitlab] user: user allowed to publish package: @GroupName/verdaccio-gitlab as owner of package-scope info --> making request: 'GET https://registry.npmjs.org/@GroupName%2Fverdaccio-gitlab' http --> 404, req: 'GET https://registry.npmjs.org/@GroupName%2Fverdaccio-gitlab' (streaming) http --> 404, req: 'GET https://registry.npmjs.org/@GroupName%2Fverdaccio-gitlab', bytes: 0/21 http <-- 201, user: user(127.0.0.1), req: 'PUT /@GroupName%2fverdaccio-gitlab', bytes: 23945/53