Skip to content

NPM

Package.json reference

private

  • Type: boolean
  • if true, then the package will not be published to the npm registry.
  • prevents accidental publishing of private packages.

commands

command description
npm init creates a package.json file
npm install installs dependencies
npm list lists installed packages
npm list --location global lists global packages
npm outdated lists outdated packages
npm update updates packages