npm is the package manager for the Node JavaScript platform\. It puts
modules in place so that node can find them, and manages dependency
conflicts intelligently\.
.
.P
It is extremely configurable to support a wide variety of use cases\.
Most commonly, it is used to publish, discover, install, and develop node
programs\.
.
.P
Run \fBnpm help\fR to get a list of available commands\.
.
.SH"INTRODUCTION"
You probably got npm because you want to install stuff\.
.
.P
Use \fBnpm install blerg\fR to install the latest version of "blerg"\. Check out \fBnpm help install\fR for more info\. It can do a lot of stuff\.
.
.P
Use the \fBnpm search\fR command to show everything that\'s available\.
Use \fBnpm ls\fR to show everything you\'ve installed\.
.
.SH"DIRECTORIES"
See \fBnpm help folders\fR to learn about where npm puts stuff\.
.
.P
In particular, npm has two modes of operation:
.
.IP"\(bu"4
global mode:
.
.br
npm installs packages into the install prefix at \fBprefix/lib/node_modules\fR and bins are installed in \fBprefix/bin\fR\|\.
.
.IP"\(bu"4
local mode:
.
.br
npm installs packages into the current project directory, which
defaults to the current working directory\. Packages are installed to \fB\|\./node_modules\fR, and bins are installed to \fB\|\./node_modules/\.bin\fR\|\.
.
.IP""0
.
.P
Local mode is the default\. Use \fB\-\-global\fR or \fB\-g\fR on any command to
operate in global mode instead\.
.
.SH"DEVELOPER USAGE"
If you\'re using npm to develop and publish your code, check out the
following help topics:
.
.IP"\(bu"4
json:
Make a package\.json file\. See \fBnpm help json\fR\|\.
.
.IP"\(bu"4
link:
For linking your current working code into Node\'s path, so that you
don\'t have to reinstall every time you make a change\. Use \fBnpm link\fR to do this\.
.
.IP"\(bu"4
install:
It\'s a good idea to install things if you don\'t need the symbolic link\.
Especially, installing other peoples code from the registry is done via \fBnpm install\fR