npm
suggest changeVersions
npm ships with current Node.js releases. See https://nodejs.org/en/download. The old version matrix is not a command reference.
Introduction
npm, the Node package manager, installs packages and records dependencies, and it publishes packages to the registry at https://www.npmjs.com/. It ships with Node.js. The old search site search.nodejs.org is gone.
Syntax
The names below are an old npm index. Some (apihelp, submodule) are gone. Use npm help <command> or https://docs.npmjs.com/cli.
- npm <command> where <command> is one of:
- add-user
- adduser
- apihelp
- author
- bin
- bugs
- c
- cache
- completion
- config
- ddp
- dedupe
- deprecate
- docs
- edit
- explore
- faq
- find
- find-dupes
- get
- help
- help-search
- home
- i
- install
- info
- init
- isntall
- issues
- la
- link
- list
- ll
- ln
- login
- ls
- outdated
- owner
- pack
- prefix
- prune
- publish
- r
- rb
- rebuild
- remove
- repo
- restart
- rm
- root
- run-script
- s
- se
- search
- set
- show
- shrinkwrap
- star
- stars
- start
- stop
- submodule
- tag
- test
- tst
- un
- uninstall
- unlink
- unpublish
- unstar
- up
- update
- v
- version
- view
- whoami
Parameters
Parameter | Example |
—— | —— |access | npm publish --access=public |bin | npm bin -g |edit | npm edit connect |help | npm help init |init | npm init |install | npm install |link | npm link |prune | npm prune |publish | npm publish ./ |restart | npm restart |start | npm start |stop | npm stop |update | npm update |version | npm version |