snippetbashTip
npm install — Install Node packages. More information: <https://docs.npmjs.com/cli/npm-install/>.
Viewed 0 times
commandnodeinstallcliinformationnpm installmorepackages
Problem
How to use the
npm install command: Install Node packages. More information: <https://docs.npmjs.com/cli/npm-install/>.Solution
npm install — Install Node packages. More information: <https://docs.npmjs.com/cli/npm-install/>.Install dependencies listed in
package.json:npm {{[i|install]}}Download a specific version of a package and add it to the list of dependencies in
package.json:npm {{[i|install]}} {{package_name}}@{{version}}Download the latest version of a package and add it to the list of dev dependencies in
package.json:npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}Download the latest version of a package and install it globally:
npm {{[i|install]}} {{package_name}} {{[-g|--global]}}Code Snippets
Install dependencies listed in `package.json`
npm {{[i|install]}}Download a specific version of a package and add it to the list of dependencies in `package.json`
npm {{[i|install]}} {{package_name}}@{{version}}Download the latest version of a package and add it to the list of dev dependencies in `package.json`
npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}Download the latest version of a package and install it globally
npm {{[i|install]}} {{package_name}} {{[-g|--global]}}Context
tldr-pages: common/npm install
Revisions (0)
No revisions yet.