-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
npm outdated and update does not work, but install works #1105
Comments
If the user is null pretty likely the client do not sends the token. Perhaps enabling send always the authentication might work |
Do you have a hint on how to enable sending auth always on npm? |
You can use https://docs.npmjs.com/misc/config#always-auth |
Thank you. With always-auth it works. So I have the following "feature requests":
|
I'll analyze the reasons, it might be a bug or something else. I'll post here when I have a final answer. How |
In principle documentation does always help. However, as stated above, I think npm may work without setting always-auth to true if verdaccio would answer with status code 401 in case npm did not provide credentials but login is required. This is because of the small distinction between 401 and 403.
So verdaccio answering with 401 could resolve the issue without obliging every user to set always-auth to true. If sending out 401 instead of 403 does not solve the issue I would file a bug report against npm itself. |
I made a pull request which would emit 401 instead of 403 in case no user credentials were sent. I'd like to invite you to check it out. |
thanks @0815fox I'll put it on my queue to check it and I'll back to you. |
@0815fox your change makes sense for me. While you fix the small issues on PR I want to ask @ayusharma opinion on this field. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Describe the bug
When I issue an npm outdated or npm update command, npm fails with E403.
To Reproduce
npm install
npm update
or invokenpm outdated
Expected behavior
Should not fail with E403.
Docker || Kubernetes (please complete the following information):
Configuration File (cat ~/.config/verdaccio/config.yaml)
Debugging output
npm update @oblamatik/omw-middleware shows the following output:
In the verdaccio logs I get the following entries:
Analysis
Not sure, that verdaccio is responsible for this, as user "null" is definitely not allowed. However I am not sure, why npm thinks, that it does not need to send auth (log entry: npm verb request no auth needed)
Could you make a statement please?
The text was updated successfully, but these errors were encountered: