Only
major
version will stick to
1
but
minor
and
patch
will be the latest versions
"dependencies": {
    "moment": "^1.6.2"
}
Only updates
patch
but
major
and
minor
will be the specified versions
"dependencies": {
    "moment": "~1.6.2"
}
Exactly the specified version
1.6.2
will be installed
"dependencies": {
    "moment": "1.6.2"
}
The latest version of the package will be installed
"dependencies": {
    "moment": "*"
}
by Valeri Tandilashvili
4 years ago
NPM
NPM Crash Course
0
Pro tip: use ```triple backticks around text``` to write in code fences