Skip to content

Instantly share code, notes, and snippets.

@Bunlong
Last active January 7, 2021 10:46
Show Gist options
  • Save Bunlong/94ff15820c1166ac18d60f029d68d935 to your computer and use it in GitHub Desktop.
Save Bunlong/94ff15820c1166ac18d60f029d68d935 to your computer and use it in GitHub Desktop.
NPM commands I use daily.

NPM Commands I Use Daily

Install a package in package.json

npm install

Remove a package

npm uninstall

Update a package

npm update

Update global package

npm update -g

Deprecate a version of a package

npm deprecate

Check for outdated packages

npm outdated

Check out environment

npm doctor

Build a package

npm build

Start a package in browser

npm start

Create a package.json file

npm init

Manage package owners

npm owner

Search for packages

npm search

Bump a package version

npm version

List installed packages

npm ls

Search npm help documentation

npm help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment