npm publish

发布包

概要

npm publish [<tarball>|<folder>] [--tag <tag>] [--access <public|restricted>] [--otp otpcode] [--dry-run]

Publishes '.' if no argument supplied
Sets tag 'latest' if no --tag specified

描述

将包发布到注册表,以便可以按名称安装。如果不存在本地 .gitignore.npmignore 文件,则包含包目录中的所有文件。如果两个文件都存在并且某个文件被 .gitignore 而不是被 .npmignore 忽略,那么它将被包含在内。有关已发布包中包含的内容以及如何构建包的详细信息,请参阅 developers

默认情况下,npm 将发布到公共注册表。这可以通过指定不同的默认注册表或在名称中使用 scope 来覆盖(参见 package.json)。

  • <folder>:包含 package.json 文件的文件夹

  • pVaCMRW2oT06oZJPvq0OJ1ug4J4p3mzo2gdTH/epkQLByWlMumbnq9dNe++jLABw2T+SA2PqCuXRelA3SZT13SzK43s9qb1bkFJfGUQVaKcSVWHFPsRFokFFL+uj0C+5Vaj7VC6hR4JPQX6DqBjdbiJ6yY7O0IYvbt8h6uSU9MnF9DD+bjjJ3Ig6dAOWZbt4NndfD0Rmkq2VQaR8awdR6Q==

  • yRhyhLGDLMDztbHDN83vthKML5b5y4/5fSjfMwnYKJBfsae09tpYw7j/NmHDhYF6953rSpUncnqQCWEY5IMvoyNeRrcC6Aa39+ueJyelLLrAzTkRCRS39jlbq6VfpmFTJCv3qlZPPGPre9iiUHT6Qk3Rqz1BfVLLFtXcFEGMojDsVHNNiK+HXmAR8gJ+uJim/21qaVbwQlKAS0hzE/EE7uSijA68L+Ett1A7FfTC0KcTPR+T6JuFnolAhJQPdtx5Z3MEYXgUPS0ydvwaWJQcm+YzCTl4xKZaAaEk/rhbsRIyOTK9TrCu6awmz52vbA5gIBSz79VRvJGzdanmLcA73O1WfSWKKpxWuBXNDRh3vASorMPShqgVLkR+pE3tI7UST0ir55AvOG6TQxWiio4oFo9dklX++zWIVh5gcsxtkezcCPOx42HGHHKOyPLR5An2FWdgj1P4qI1FKCILYyk5n7zG/nN2Q536xIDEyDd272ejgqLbSKtgYAudgUmzydLt

  • vGn2Klxulyjf33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