1 .TH "NPM\-PUBLISH" "3" "October 2016" "" ""
3 \fBnpm-publish\fR \- Publish a package
8 npm\.commands\.publish([packages,] callback)
13 Publishes a package to the registry so that it can be installed by name\.
14 Possible values in the 'packages' array are:
18 A folder containing a package\.json file
21 A url or file path to a gzipped tar archive containing a single folder
22 with a package\.json file inside\.
26 If the package array is empty, npm will try to publish something in the
27 current working directory\.
29 This command could fails if one of the packages specified already exists in
30 the registry\. Overwrites when the "force" environment variable is set\.