- Published on
NPM Package Manager Cheatsheet
- Authors
- Name
- Dan Sorensen
Update Installed Packages
To find outdated packages with a known bug or vulnerability:
npm audit
To find other installed packages that are out of date:
npm outdated
Wanted is the safest update version that meets your configured rules.
Yellow highlights an available update.
Red indicates a minor update within your defined semver rules in package.json. Update and test these now.
Updating a package
npm update [package name]
Package Details
Some packages are difficult to locate with little information other than a github repo. The best place to start is NPM Package Search.
npx is used to execute a script, often initialization steps, without permanently installing the package into the project.