Node.js / npm

Node.js / npm: npm install — Windows

Install dependencies declared by the project.

Availability: Third-party software; install and version dependent.中文

Syntax

npm install

Examples

Install dependencies declared by the project.

npm install

Parameters, options and clauses

Option / clauseDescription
<package>Install the named package; with no package, install dependencies from the project manifest.
--save-devAdd the package to development dependencies.
--globalInstall in the global prefix rather than the project.
--ignore-scriptsDo not run package lifecycle scripts; this can reduce risk for untrusted packages.
--package-lockEnable or disable package-lock generation.
--registry <url>Use a specified package registry.
Safety note

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.

Official reference ↗Back to directory