1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 14:22:07 +02:00
tldr/pages/common/npm.md
Jeremy Aza d4b1527eae
pages.es/*: add Spanish translation; npm: update page (#11297)
* npm: improved description of npm list and npm install

* npm, nvm: add Spanish translation

* nvm: add Spanish translations to the commands

* helm-install, helm, nest, netlify, next, nginx, vite: add Spanish translation

* choco, clear, cmd, del, dir, mkdir: add Spanish translation

* helm-*: update Spanish translation

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* pages.es/common: update pages

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* pages.es/windows: update pages

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Darío Hereñú <magallania@gmail.com>
2023-10-28 00:13:16 +05:30

37 lines
958 B
Markdown

# npm
> JavaScript and Node.js package manager.
> Manage Node.js projects and their module dependencies.
> More information: <https://www.npmjs.com>.
- Interactively create a `package.json` file:
`npm init`
- Download all the packages listed as dependencies 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}} --save-dev`
- Download the latest version of a package and install it globally:
`npm install --global {{package_name}}`
- Uninstall a package and remove it from the list of dependencies in `package.json`:
`npm uninstall {{package_name}}`
- List of locally installed dependencies:
`npm list`
- List top-level globally installed packages:
`npm list --global --depth={{0}}`