I can't seem to link my account to my npmjs.com account

I'm not sure what I'm doing wrong, but I created a read-only bypass 2FA token on npmjs.com and every time I click verify on the settings page I get the same error message every time "Failed to verify npm token".

If it helps the token that was created starts with npm_gV03988xVv[snip] and is 40 characters long.

You are going to need to supply some more context.

Where exactly are you trying to add the token? Which account are you trying to link?

Sorry for not being more specific, but I went to Library - Node-RED and followed the instructions to go to npmjs [dot] com and getting a token and then pasted it into the box at the bottom, and then it just says "Failed to verify npm token" every time I click verify.

If you're pasting the token into the terminal, are you using right-click with the mouse to paste it?

Which instructions?

The instructions on Library - Node-RED

Your profile is not currently connected to an npm user account. This means we cannot identify what nodes you've published to npm.

To verify your account:

Login into npmjs.com.
Go to your Profile Settings page and then the Tokens section.
Create a new Read Only token and copy it into the box below and click verify. We do not store this token - we only use to make a one-time request to retrieve your verified npm profile.
Once you have connected your npm user account you can delete the token from your npm profile.

No, I'm pasting the token into the nodered website, after copying it from the npmjs website

@evilbunny2008 With all of the recent changes on npm around token handling, I could well believe something isn't behaving. I don't have the bandwidth to investigate at the moment - you may just have to leave it unlinked for the time being.

What are you trying to do in linking your npm account on the flow library?

I only tried to link because the website rejected a package but didn't give any details, other than it was rejected.

I thought it might give me access package logs, see above.

@evilbunny2008 if you let me know the package name I can check the logs for any hints as to why it was rejected.

`

Which has since been accepted, but it was frustrating at the time not knowing what needed changing to fix things.

Given this problem it may not have been something I could have fixed anyway, but yea lack of information for both problems is a problem in any case as it happened to at least 1 other person too nodered [dot] org/t/error-already-rejected-this-version/102177

I don't immediately see any errors relating to that node. I do see you've published a number of updates. Do you recall which version of your packaged appeared to have errors reported or any more info on the sequence of events you saw?

When you say it was rejected, what exactly did it say?

I only started publishing at v0.0.5, and it didn't start appearing on the site until v0.0.8 at the earliest, and trying to manually publish all showed the same error.

Same as this post Error: already rejected this version "Error: already rejected this version" they even posted a screen shot of the page/error.

The message 'already rejected this version' means just what it says - the library doesn't re-evaluate a package version it has already looked at. But it doesn't record the error that caused it to reject that version in the original attempt.

If you see that error, then you must have already tried to add that version previously, and you should hopefully have got some sort of error to indicate what was wrong.

I don't see any errors logged in the backend related to versions:

  • 0.10, 0.12, 0.13

Was it 0.11 that you had issues with?

Nope, that's the problem.

I have no idea to be honest as the version isn't reported either, but at some point things started to work, also no idea why.

Possibly because you incremented the version number?

If the problem was fixed by simply incrementing the version, that would hint that there is a problem with how nodered.org processed packages, but with no logs it's anyone's guess as what that actually is/was, and since there is no logs it's anyone's guess how wide spread.

The error suggests that an earlier attempt to add the package at that version failed. That is the error that is important - the first time it failed. Possibly you then made changes to the package and tried to add again, but because the version had not been changed then the Already Rejected error was seen. On changing the version it then was added ok. So the fix was not incrementing the version, but whatever was changed before the version was incremented.