node/deps/npm/man/man3/npm-publish.3

42 lines
891 B
Groff
Raw Normal View History

.TH "NPM\-PUBLISH" "3" "March 2015" "" ""
.SH "NAME"
2014-09-25 05:41:07 +08:00
\fBnpm-publish\fR \- Publish a package
.SH SYNOPSIS
.P
.RS 2
2014-11-05 07:08:12 +08:00
.nf
npm\.commands\.publish([packages,] callback)
2014-11-05 07:08:12 +08:00
.fi
2014-09-25 05:41:07 +08:00
.RE
.SH DESCRIPTION
.P
Publishes a package to the registry so that it can be installed by name\.
2014-09-25 05:41:07 +08:00
Possible values in the 'packages' array are:
.RS 0
.IP \(bu 2
\fB<folder>\fR:
A folder containing a package\.json file
2014-09-25 05:41:07 +08:00
.IP \(bu 2
\fB<tarball>\fR:
A url or file path to a gzipped tar archive containing a single folder
with a package\.json file inside\.
2014-09-25 05:41:07 +08:00
.RE
.P
If the package array is empty, npm will try to publish something in the
current working directory\.
.P
This command could fails if one of the packages specified already exists in
the registry\. Overwrites when the "force" environment variable is set\.
2014-09-25 05:41:07 +08:00
.SH SEE ALSO
.RS 0
.IP \(bu 2
2014-09-17 06:38:50 +08:00
npm help 7 registry
2014-09-25 05:41:07 +08:00
.IP \(bu 2
npm help adduser
2014-09-25 05:41:07 +08:00
.IP \(bu 2
npm apihelp owner
2014-09-25 05:41:07 +08:00
.RE