-
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
review and improve dist-tag portion of tutorial #45
Comments
from @denmnch in #21 I spent some more time with this and narrowed it down. The real issue for most users experiencing problems with this portion of the tutorial is a misunderstanding of how versions are created and published and how dist-tags relate to them. If you make a mistake, e.g., trying to apply a dist-tag to a version number that hasn't been published, the app throws up errors and ceases to work as expected. The solution is to run how-to-npm again and, if necessary, repeat the previous step (or steps). In other words, you may need to go back two steps to use npm version patch (or similar) and note the version number. Then publish that version. Then use the correct syntax to add a dist-tag to the newly published version. If you follow those steps the tutorial works perfectly. But it will continue to throw errors and fail to add dist-tags if you make a mistake or if you attempt to do certain actions on steps other than those on which they are being tested. |
Finally figured it out, it was silly and tricky and buggy and ... sigh! |
Well, could you explain for the rest of us? |
Reviewed denmch's posts and still having trouble. I've tried
which gives
I've also tried variations of the initial command, the corresponding dist-tag ls command (which returns same errors), going back and redoing the publish and republish levels, making sure that the version I'm trying to do isn't the latest, and adding a "dist-tags" property of "buggy" to my package.json object (total hail mary based off the
|
@amirghafouri I posted this over on FCC but thought you might find it helpful to: I went back to look through this as I originally stopped at the dist-tag step. Turns out, it does work but is very picky. See the post here from wayback regarding this issue: #758 I recommend going back to the "Start A Project" step, and redoing npm init as my package did not have my username in the name: area of the package.json. When I was getting the error you got, the name was "fccproject", but when I re-did npm init, it changed it to @dhcodes/fccproject. I was then able to re-run the publish step. For the version step, as noted in #758, be sure to add a new version number (ex. npm version 1.0.x where x is incremented +1) even though the directions aren't clear on this. Then verify and do publish again. And verify that. Finally, when dealing with the dist-tag, know that the syntax should be: Lastly, |
After several attempts now I am giving up. As a beginner tutorial this is terrible. If you have to do all the steps suggested by @dhcodes just to get though it, is it worth it? So far I haven't found any help on Stack Overflow or Cloud 9. To be honest I am just going round and round in circles. Please consider improving this challenge. |
I had the same error and managed to complete this challenge after starting over and redoing all steps, only thing that changed is a package name - it became @/. Also if I ever did mistake on a how-to-npm challenge I'd rerun it. That's what worked for me. |
for future people encountering this issue, i had it too and zach from nodeschool/discussions#995 helped. just be crystal clear what the name of the project is. and yes really add your @username because their documentation sucks. |
Hello all this will help all of you find your own correct details so you can complete this section simply use the following
enjoy :) |
is this closed? |
So, the key is to find what tags do you have on your package to do so follow as mentioned below
|
fixes #21 #35
The text was updated successfully, but these errors were encountered: