Question: how do i publish a package
See original GitHub issueHi,
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
Logs:
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 😉
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
How to publish packages to npm (the way the industry does ...
Next, you want to begin the project with the npm init command. npm init. This command runs you through a few questions and...
Read more >Publishing a Package - Yarn
When you publish a package with Yarn it goes onto the npm registry which is used to distribute packages globally.
Read more >How To: Publishing Your First Package to npm - DigitalOcean
Here's a little guide for publishing your own packages on npm. You've written some piece of software code that you think is really...
Read more >How to Publish Your First npm Package | by Bret Cameron
Once you're up-and-running, publishing an npm package can be as easy as typing npm publish into the terminal. But setting up your package...
Read more >How To Create and Publish NPM Packages - James Q Quick
Ever wondered how to create and publish NPM packages that millions of JavaScript developers across the world can use?
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 andGroupName
as group. Then I modified my localpackage.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):Found the problem! my Kubernetes setup resolves the variables in the config file (ConfigMap). Sorry for that, thanks for checking @dlouzan!, the issue with the username still stands btw but thats already mentioned in #20.