tty.help
Appearance

Display preferences are saved in this browser.

npmManage JavaScript packages

Install dependencies and run scripts defined by a JavaScript project.

Label
Executes code
Edited
2026-11-07
References
1 official

Example

npm install
  1. npmCommand nameAliases, shell functions, wrappers and PATH can change which program runs.
  2. installArgumentsFlags and operands as written. Quoting and expansion can change them before the program starts.
Illustrative syntax only. Do not run this without confirming the target and environment.

Things to check

Installations can run package lifecycle scripts and change package or lock files. A familiar package name does not verify its publisher or contents.

Before you run it

Review package.json, the lockfile, registry and lifecycle behavior before installing.

Ask your agent

“Explain the entire command, including every flag and operator. What exact files, services or permissions could it affect, and how will we verify the result?”

Context is part of the command

A command name alone cannot determine safety. Aliases, shell functions, expansions, flags, permissions and working directory can change its behavior.

Explore a full command