-
Notifications
You must be signed in to change notification settings - Fork 221
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
dist-tag removal challenge 403's when resetting latest, then gets inconsistent #18
Comments
Even better, if I then run verify, it is inconsistent with my
Which is super odd, because indeed:
I can't get this to pass through mocked npm usage. I had to manually edit the registry file… 😢 |
Same issues here. |
This actually does work. See this note on FreeCodeCamp's implementation of how-to-npm for details about the bug and how to avoid it: freeCodeCamp/freeCodeCamp#758 |
^^ This. Thank you denmch for taking the time to write up that note. It worked for me. |
closing in favor of #45 |
As this thread directly addresses the dist-tag removal (rm) aspect of the challenge, I'll post my workaround here (before I forget). The problem I had was re-assigning the "latest" tag to another version before being allowed to remove another tag from the actual latest version. Adding a tag We'll assume you have version 1.0.1 published by this stage. OK now create another version (1.0.2). Verify Because 1.0.2 is now the latest version, it will already be tagged "latest", so add another tag to it (name it "dev" or "test", whatever) by completing the Dist Tag challenge. Type: how-to-npm Re-assign "latest" tag to another version Type: how-to-npm Verify. If that goes well you'll have both versions tagged, so go to the Dist Removal challenge (how-to-npm). Type: npm dist-tag rm @username/packagename test Verify and (hopefully) you're good to go. Convoluted, I know. IMO I think this challenge should be removed until fixed. Anyway, I am tired so I hope this is in the right order. |
@TheWhippinpost THANK YOU. This is the SOLUTION! |
@TheWhippinpost Thank you although what i did was just
and it solved my problem all i had to do was change the latest version to my previous original version |
@omijh that was way too perfect thanks |
Thank you for your help, @TheWhippinpost. It worked!
To clarify this point though, the publish process for 1.0.2 should happen on Publish again exercise (exercise 10) and not Dist tag removal exercise (exercise 12). |
Just try adding new tag with a 1.0.0 if your current version is 1.0.1
|
I tried this a few times, always results with the same scenario when I'm on the "dist-tag removal" challenge:
I've got two versions in the registry: 1.1.0 and 1.2.0. This is regardless of another tag existing or not on these versions.
The text was updated successfully, but these errors were encountered: