Tell us what’s happening:
Describe your issue in detail here.
It asked me to create a dependency called “moment” with version “2.10.2”.
It did and it still thinks that my version is not “2.10.2”
Your project link(s)
Your browser information:
User Agent is:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36
Challenge: Manage npm Dependencies By Understanding Semantic Versioning
Link to the challenge:
The instructions say:
In the dependencies section of your package.json file, change the
version of moment to match MAJOR version 2, MINOR version 10 and PATCH version 2
Your package.json has:
Setting it to
^2.10.2 is not the same thing as setting it to
2.10.2. It is the difference between saying, “I want a scoop of vanilla, but if there are some sprinkles or whatever, that’s cool, as long as there’s a scoop of vanilla in there.” and saying, “I want a scoop of vanilla. Period.”
Thanks Kevin, this is a real learning instance for me.
Very well explained.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.