All apps/npm

npm

npm

The package manager for Node.js, and the client for its registry.

Runs as npm, npx|macOS, Linux, Windows|docs.npmjs.com

Autocomplete

Fig spec, with what the manifest adds · 101 subcommands
Published once and never changed; check the digest before caching
sha256
156b52dca571e9f254daec599a35f84305979a89518474028e1ac3f2d3557edb
Size
84413 bytes
Subcommands101 subcommands
npm install
Install a package and its dependencies
npm run
Run arbitrary package scripts
npm init
Trigger the initialization
npm access
Set access controls on private packages
npm adduser
Add a registry user account
npm audit
Run a security audit
npm audit fix
If the fix argument is provided, then remediations will be applied to the package tree
npm bin
Print the folder where npm will install executables
npm bugs
Report bugs for a package in a web browser
npm cache
Manipulates packages cache
npm cache add
Add the specified packages to the local cache
npm cache clean
Delete all data out of the cache folder
npm cache verify
Verify the contents of the cache folder, garbage collecting any unneeded data, and verifying the integrity of the cache index and all cached data
npm ci
Install a project with a clean slate
npm cit
Install a project with a clean slate and run tests
npm clean-install-test
Install a project with a clean slate and run tests
npm completion
Tab completion for npm
npm config
Manage the npm configuration files
npm config set
Sets the config key to the value
npm config get
Echo the config value to stdout
npm config list
Show all the config settings
npm config delete
Deletes the key from all configuration files
npm config edit
Opens the config file in an editor
npm create
Create a package.json file
npm dedupe
Reduce duplication in the package tree
npm deprecate
Deprecate a version of a package
npm dist-tag
Modify package distribution tags
npm docs
Open documentation for a package in a web browser
npm doctor
Check your npm environment
npm edit
Edit an installed package
npm explore
Browse an installed package
npm fund
Retrieve funding information
npm get
Echo the config value to stdout
npm help
Get help on npm
npm help-search
Search npm help documentation
npm hook
Manage registry hooks
npm install-ci-test
Install a project with a clean slate and run tests
npm install-test
Install package(s) and run tests
npm it
Install package(s) and run tests
npm link
Symlink a package folder
npm ln
Symlink a package folder
npm logout
Log out of the registry
npm ls
List installed packages
npm org
Manage orgs
npm org set
Add a user to an org or manage roles
npm org rm
Remove a user from an org
npm org ls
List users in an org or see what roles a particular user has in an org
npm outdated
Check for outdated packages
npm owner
Manage package owners
npm owner ls
List all the users who have access to modify a package and push new versions. Handy when you need to know who to bug for help
npm owner add
Add a new user as a maintainer of a package. This user is enabled to modify metadata, publish new versions, and add other owners
npm owner rm
Remove a user from the package owner list. This immediately revokes their privileges
npm pack
Create a tarball from a package
npm ping
Ping npm registry
npm pkg
Manages your package.json
npm pkg get
Retrieves a value key, defined in your package.json file. It is possible to get multiple values and values for child fields
npm pkg set
Sets a value in your package.json based on the field value. It is possible to set multiple values and values for child fields
npm pkg delete
Deletes a key from your package.json
npm prefix
Display prefix
npm profile
Change settings on your registry profile
npm profile get
Display all of the properties of your profile, or one or more specific properties
npm profile set
Set the value of a profile property
npm profile set password
Change your password. This is interactive, you'll be prompted for your current password and a new password
npm profile enable-2fa
Enables two-factor authentication
npm profile disable-2fa
Disables two-factor authentication
npm prune
Remove extraneous packages
npm publish
Publish a package
npm rebuild
Rebuild a package
npm repo
Open package repository page in the browser
npm restart
Restart a package
npm root
Display npm root
npm search
Search for packages
npm set
Sets the config key to the value
npm set-script
Set tasks in the scripts section of package.json
npm shrinkwrap
Lock down dependency versions for publication
npm star
Mark your favorite packages
npm stars
View packages marked as favorites
npm start
Start a package
npm stop
Stop a package
npm team
Manage organization teams and team memberships
npm team create
npm team destroy
npm team add
npm team rm
npm team ls
npm test
Test a package
npm token
Manage your authentication tokens
npm token list
Shows a table of all active authentication tokens
npm token create
Create a new authentication token
npm token revoke
Immediately removes an authentication token from the registry. You will no longer be able to use it
npm uninstall
Uninstall a package
npm r
Uninstall a package
npm un
Uninstall a package
npm remove
Uninstall a package
npm unlink
Uninstall a package
npm unpublish
Remove a package from the registry
npm unstar
Remove an item from your favorite packages
npm update
Update a package
npm version
Bump a package version
npm view
View registry info
npm whoami
Display npm username