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-27 19:43:16 +01:00
|
|
|
# npm
|
|
|
|
|
|
|
|
> Gestor de paquetes JavaScript y Node.js.
|
|
|
|
> Gestiona proyectos de Node.js y sus módulos de dependencias.
|
|
|
|
> Más información: <https://www.npmjs.com>.
|
|
|
|
|
|
|
|
- Creación interactiva de un archivo `package.json`:
|
|
|
|
|
|
|
|
`npm init`
|
|
|
|
|
|
|
|
- Descarga todos los paquetes listados como dependencias en `package.json`:
|
|
|
|
|
|
|
|
`npm install`
|
|
|
|
|
|
|
|
- Descarga una versión específica de un paquete y lo añade a la lista de dependencias en `package.json`:
|
|
|
|
|
|
|
|
`npm install {{nombre_paquete}}@{{versión}}`
|
|
|
|
|
|
|
|
- Descarga la última versión de un paquete y lo añade a la lista de dependencias de desarrollo en `package.json`:
|
|
|
|
|
2024-09-08 16:52:28 +01:00
|
|
|
`npm install {{nombre_paquete}} {{-D|--save-dev}}`
|
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-27 19:43:16 +01:00
|
|
|
|
|
|
|
- Descarga la última versión de un paquete y lo instala globalmente:
|
|
|
|
|
2024-09-08 16:52:28 +01:00
|
|
|
`npm install {{-g|--global}} {{nombre_paquete}}`
|
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-27 19:43:16 +01:00
|
|
|
|
|
|
|
- Desinstala un paquete y lo remueve de la lista de dependencias en `package.json`:
|
|
|
|
|
|
|
|
`npm uninstall {{nombre_paquete}}`
|
|
|
|
|
|
|
|
- Lista de dependencias instaladas localmente:
|
|
|
|
|
|
|
|
`npm list`
|
|
|
|
|
|
|
|
- Lista de paquetes instalados globalmente de nivel superior:
|
|
|
|
|
2024-09-08 16:52:28 +01:00
|
|
|
`npm list {{-g|--global}} --depth {{0}}`
|