lpninja
February 24, 2022, 12:44am
1
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)
solution: https://replit.com/@lpninja/boilerplate-npm
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:
"dependencies": {
"express": "^4.14.0",
"moment": "^2.10.2"
},
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.”
lpninja
February 25, 2022, 3:03am
3
Thanks Kevin, this is a real learning instance for me.
Very well explained.
system
Closed
August 26, 2022, 3:03pm
4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.