mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 23:43:09 +01:00
30 lines
748 B
Groff
30 lines
748 B
Groff
.\" Generated with Ronnjs 0.3.8
|
|
.\" http://github.com/kapouer/ronnjs/
|
|
.
|
|
.TH "NPM\-INSTALL" "3" "December 2012" "" ""
|
|
.
|
|
.SH "NAME"
|
|
\fBnpm-install\fR \-\- install a package programmatically
|
|
.
|
|
.SH "SYNOPSIS"
|
|
.
|
|
.nf
|
|
npm\.commands\.install([where,] packages, callback)
|
|
.
|
|
.fi
|
|
.
|
|
.SH "DESCRIPTION"
|
|
This acts much the same ways as installing on the command\-line\.
|
|
.
|
|
.P
|
|
The \'where\' parameter is optional and only used internally, and it specifies
|
|
where the packages should be installed to\.
|
|
.
|
|
.P
|
|
The \'packages\' parameter is an array of strings\. Each element in the array is
|
|
the name of a package to be installed\.
|
|
.
|
|
.P
|
|
Finally, \'callback\' is a function that will be called when all packages have been
|
|
installed or when an error has been encountered\.
|