npm-pack

对可安装的包进行压缩

概要

> npm pack [[<@scope>/]<pkg>...]

描述

对可安装的包进行压缩。可安装包可由如下形式表示压缩包,压缩包网址,name@tag,name@version,name,scoped name等。

会在当前目录中生成< name >-< version >.tgz的压缩文件。

# 各种用法举例

# 压缩包
> npm pack indexzero-forever-v0.5.6-0-gde0d6d2.tar.gz

# 网址
> npm pack https://github.com/indexzero/forever/tarball/v0.5.6

# name@tag
> npm pack npm-demos-test@latest

# name@version
> npm pack npm-demos-test@^1.0.0

# name
> npm pack npm-demos-test

# scope name
> npm pack @username/npm-demos-test

results matching ""

    No results matching ""