LinuxCommandLibrary

npm-update

updates packages to latest versions within semver range specified in package

TLDR

Update all packages

$ npm update
copy
Update specific package
$ npm update [package-name]
copy
Update global packages
$ npm update -g
copy
Update to latest (beyond semver)
$ npm update [package] --latest
copy
Dry run update
$ npm update --dry-run
copy

SYNOPSIS

npm update [packages...] [options]

DESCRIPTION

npm update updates packages to latest versions within semver range specified in package.json. Updates package-lock.json. Use npm outdated first to see available updates.

PARAMETERS

-g, --global

Update global packages.
--save
Update package.json.
--dry-run
Preview updates.

SEE ALSO

npm(1), npm-outdated(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community