Basic Commands
1 | npm -v |
Range Syntax
- caret (^)
Allows changes that do not modify the left-most non-zero digit in the [major, minor, patch] tuple. In other words, this allows patch and minor updates for versions 1.0.0 and above, patch updates for versions 0.X >=0.1.0, and no updates for versions 0.0.X.
“express”: “^4.15.3” means it can upgrade to version 4.99.0. Basically anything before 5.0.0
Update a package
First find out your outdated packages by typing npm outdated
Then update the package or packages that you want manually as npm update –save package_name