Install dependencies declared by the project.
npm installInstall dependencies declared by the project.
npm installInstall dependencies declared by the project.
npm install| Option / clause | Description |
|---|---|
<package> | Install the named package; with no package, install dependencies from the project manifest. |
--save-dev | Add the package to development dependencies. |
--global | Install in the global prefix rather than the project. |
--ignore-scripts | Do not run package lifecycle scripts; this can reduce risk for untrusted packages. |
--package-lock | Enable or disable package-lock generation. |
--registry <url> | Use a specified package registry. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.