Steve Griffith
You’ve probably noticed that software version numbers have three digits separated with periods. Each number has a specific meaning.
When installing packages with Yarn or NPM you need to understand the syntax that you can use to restrict or allow different versions by npm.
NPM server calculator: https://semver.npmjs.com/
SemVer website: https://semver.org/
NPM semver reference page: https://docs.npmjs.com/getting-started/using-a-package.json#specifying-packages .
Oh, wow, I like that Semver Calc. Could've used that the other day in a MEAN Project. Thanks Steve!
Thanks for the great explanation Steve. One quick question: At 9:17 you installed 'npm i P jquery@~3.3.0' which means it will install 3.3 and any PATCH number higher than 0. But in the package.json file this shows as 'jquery: ^3.3.1' which means NOW when we run yarn or npm i in this project it will install any jquery which has a MINOR or PATCH value more than 3.1 . In the package.json file shouldnt it instead show as 'jquery: ~3.3.1' (i.e with a tilda in front so it only updates patch number – because that is how we ran the install initially?) Cheers
Thanks for sharing….
this is gold!
thanks sir , this was very helpful
great video