npm update
Update a package
Options
Name | Description |
---|---|
-g | Update global package |
--global-style | Causes npm to install the package into your local node_modules folder with the same layout it uses with the global node_modules folder |
--legacy-bundling | Causes npm to install the package such that versions of npm prior to 1.4, such as the one included with node 0.8, can install the package |
--strict-peer-deps | If set to true, and --legacy-peer-deps is not set, then any conflicting peerDependencies will be treated as an install failure |
--no-package-lock | Ignores package-lock.json files when installing |
--omit <Package type> |
|
--ignore-scripts | If true, npm does not run scripts specified in package.json files |
--no-audit | Submit audit reports alongside the current npm command to the default registry and all registries configured for scopes |
--no-bin-links | Tells npm to not create symlinks (or .cmd shims on Windows) for package executables |
--no-fund | Hides the message at the end of each npm install acknowledging the number of dependencies looking for funding |
--dry-run | Indicates that you don't want npm to make any changes and that it should only report what it would have done |
-w, --workspace <workspace...> | Enable running a command in the context of the configured workspaces of the current project |
-ws, --workspaces | Enable running a command in the context of all the configured workspaces |