Install packages from the npm registry and run package.json scripts (alias for npm).
Synopsis
i install [<pkg>[@<spec>] ...]
Description
Shorthand alias with the same behavior as npm: installs packages into node_modules and can run package.json scripts. Supports both project-local and global (-g) installs.
Options
install [<pkg>...] With no args, reads cwd package.json and installs every dependency and devDependency.
install -g <pkg> Install into /shared/lib/node_modules and publish CLI bins to /shared/bin.
run [<script>] Run a package.json script; with no script name, lists available scripts.
test | start | stop | restart Shortcuts for 'i run <name>'.
list [-g] List direct dependencies (local or global).
root [-g] Print the node_modules path (local or global).
-g, --global Operate on the shared global prefix.
-h, --help Show this help message.
Examples
$ i install lodash
Install lodash into the local node_modules.
$ i run build
Run the 'build' script from package.json.
$ i install -g typescript
Install a CLI tool globally onto $PATH.
Notes
Behaves identically to npm in this shell; use whichever name is more convenient.
See Also
npm, npx, uv