npm manages Node.js packages.
npm initInitializes a project and creates a package.json file through interactive prompts.
npm init --yes (-y)Skips the questionnaire and creates a package.json file with default values.
npm install (i)Installs packages listed in the package.json file.
npm install (i) <package-names>Installs the specified packages into the dependencies section.
npm install (i) --save-dev (-D) <package-names>Installs the specified packages into the devDependencies section.
npm install (i) --global (-g) <package-names>Installs the specified packages globally.
npm list (ls)Lists all installed packages.
npm list (ls) <package-names>Lists installed packages related to the specified packages.
npm uninstall (un) <package-names>Uninstalls the specified packages.
npm runLists the scripts section.
npm run <script-name>Runs the specified script.
npm rootShows the absolute path to the local node_modules folder.