包规范

包名称说明符

描述

npm installpackage.json 中的依赖部分这样的命令使用包名称说明符。这可以是许多不同的东西,都指的是 "package"。示例包括包名称、git url、tarball 或本地目录。在使用此包名称说明符的 npm 命令的帮助输出中,这些通常称为 <package-spec>

包名

  • [<@scope>/]<pkg>
  • [<@scope>/]<pkg>@<tag>
  • [<@scope>/]<pkg>@<version>
  • [<@scope>/]<pkg>@<version range>

按名称引用包,有或没有范围,以及可选的标记、版本或版本范围。这通常与 注册表 配置结合使用以引用注册表中的包。

例子:

    l5pTZSXV/g3s1payVk0MoDnzAa65GhDx3ZfTJXCzNcnoAapbi0VHeYYStAZcKlv79kCcSKPl4g3QX5H7ickS1bsR+Y+x/y8hD6xa4fTl72zD3SokZzwBuiyhPWBl7020nhcz4BuEzi767T32w+Cd4nRIi9pPRtfw9M2dyYIrzZ91UhxeB3oYiBApO+OpERU0PZsgmxpIn+2niNEbUiIJLUpCkQ1LLfsCc7W3gJNcG8JzPHTUHsqsAfpCYaLKzePV

别名

    pZLixQeZQ9BdiIz1jedfTHoleXjHKB4lcTO3EeGvkvYkVUKexyvz5r3QGWNlAaK+z0txM5jx32KVVePip20F9g==

jROlQu55o1T/1Y5Zkhdg1GajrYm0HAFmUAMoIAfdRuuOxFpNiuBAztsj78FQLNVF9UNisyZ9MdRvTbhYqV+UKo+cbDNu4GaSOzRd1bvXvAmHROQdpdiff4bElwaPpc0ClEl0zlfwrLOyaYIuVtJxt9Vle2QCtkhg0wPFmYQyg/Nq/xA10x7d8oAG5SRJLYlvndHqMPfDuy/v5MsF22EDAOVvD+pWzEQmRdfrCaqI8AaljwDtM3q78C8ymSTGpojKetdhydeChe/Rhy2WuAAZOLHd6yWhsalxOO64J+5QKJg5eVEKlmwrMcmxeAgr67oqJBq5GLGZ8k5cOim3coahcGlFseLTxqkQxvtF5fcNaMGuG5iEFS2zcZjpfwXBBtVNy9yfBl/1HeBZ/RWucBVT2Z9el8zalllcnyKgpMsJdWo=

IhurqkZYFv8NSP4qtdOuXd3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