Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

npm-pack (1)

Name

npm-pack - Create a tarball from a package

Synopsis

npm pack [[<@scope>/]<pkg>...] [--dry-run]

Description

NPM-PACK(1)                                                        NPM-PACK(1)



NAME
       npm-pack - Create a tarball from a package

SYNOPSIS
         npm pack [[<@scope>/]<pkg>...] [--dry-run]

DESCRIPTION
       For  anything  that's  installable (that is, a package folder, tarball,
       tarball url, name@tag, name@version, name, or scoped name),  this  com-
       mand  will fetch it to the cache, and then copy the tarball to the cur-
       rent working directory as  <name>-<version>.tgz,  and  then  write  the
       filenames out to stdout.

       If  the same package is specified multiple times, then the file will be
       overwritten the second time.

       If no arguments are  supplied,  then  npm  packs  the  current  package
       folder.

       The  --dry-run argument will do everything that pack usually does with-
       out actually packing anything. Reports on what would have gone into the
       tarball.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+-------------------------+
       |ATTRIBUTE TYPE |    ATTRIBUTE VALUE      |
       +---------------+-------------------------+
       |Availability   | runtime/nodejs/nodejs-8 |
       +---------------+-------------------------+
       |Stability      | Pass-thru volatile      |
       +---------------+-------------------------+
SEE ALSO
       o npm help cache

       o npm help publish

       o npm help config

       o npm help 7 config

       o npm help 5 npmrc





NOTES
       This     software     was    built    from    source    available    at
       https://github.com/oracle/solaris-userland.   The  original   community
       source    was   downloaded   from    https://github.com/nodejs/node/ar-
       chive/v8.15.1.zip

       Further information about this software can be found on the open source
       community website at https://github.com/nodejs/node.



                                  August 2018                      NPM-PACK(1)