-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[BUG/Question] code ENEEDAUTH issue #5805
Comments
Did you find a workaround for this? |
@VividLemon Most likely you need to explicitly set the - name: Setup Node.js
uses: actions/setup-node@v3
with:
+ registry-url: "https://registry.npmjs.org" See also #6184 (comment) for details. |
I had forgotten I made this issue! Yes, this was the problem |
But as a side note, perhaps the error message could be more descriptive |
You're right, the error message could mention the |
(@VividLemon But I guess you can close the issue?) |
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
In my current ci I have the action running:
Without any changes, it now always fails with
npm ERR! code ENEEDAUTH
This entire issue could be solved by answering a simple question, does npm fail with this code when a token has expired? Nothing that I have here has changed, and has been working smoothly for months. But, I don't have access to the token. I have explored this old post #3618 that didn't seem to get any replies. Is the error just too ambiguous and should instead maybe state that it's forbidden? Assuming that is the issue.
Expected Behavior
Not to fail
Steps To Reproduce
N/a
Environment
This is ran through a github action running node 16, and npm v8.
The text was updated successfully, but these errors were encountered: