Created
June 6, 2019 00:15
-
-
Save sjordan1975/aa3f46a857b2a5f52f1dbc698766cc8a to your computer and use it in GitHub Desktop.
[npm update] update all the packages listed to the latest version respecting semver #npm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| npm update [-g] [<pkg>...] | |
| aliases: up, upgrade | |
| This command will update all the packages listed to the latest version (specified by the tag config), respecting semver. | |
| It will also install missing packages. As with all commands that install packages, the --dev flag will cause devDependencies to be processed as well. | |
| If the -g flag is specified, this command will update globally installed packages. | |
| If no package name is specified, all packages in the specified location (global or local) will be updated. | |
| As of npm@2.6.1, the npm update will only inspect top-level packages. Prior versions of npm would also recursively inspect all dependencies. To get the old behavior, use npm --depth 9999 update. | |
| As of npm@5.0.0, the npm update will change package.json to save the new version as the minimum required dependency. To get the old behavior, use npm update --no-save. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment