mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 11:55:24 +02:00
npm-install: add page (#14223)
This commit is contained in:
parent
c4f05ac6ac
commit
223344ce6e
1 changed files with 20 additions and 0 deletions
20
pages/common/npm-install.md
Normal file
20
pages/common/npm-install.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# npm install
|
||||
|
||||
> Install node packages.
|
||||
> More information: <https://docs.npmjs.com/cli/commands/npm-install>.
|
||||
|
||||
- Install dependencies listed in package.json:
|
||||
|
||||
`npm install`
|
||||
|
||||
- Download a specific version of a package and add it to the list of dependencies in `package.json`:
|
||||
|
||||
`npm install {{package_name}}@{{version}}`
|
||||
|
||||
- Download the latest version of a package and add it to the list of dev dependencies in `package.json`:
|
||||
|
||||
`npm install {{package_name}} {{-D|--save-dev}}`
|
||||
|
||||
- Download the latest version of a package and install it globally:
|
||||
|
||||
`npm install {{-g|--global}} {{package_name}}`
|
Loading…
Add table
Reference in a new issue