我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们

安装包

You can install a package from GitHub 包注册表 and use the package as a dependency in your own project.

GitHub 包注册表 可用于 GitHub Free、GitHub Pro、GitHub Team、GitHub Enterprise Cloud 和 GitHub One。 GitHub 包注册表 is not available for private repositories owned by accounts using legacy per-repository plans. 更多信息请参阅“GitHub 的产品”。

本文内容

Anyone with read permissions for a repository can install a package from that repository.

About package installation

You can search GitHub to find packages in GitHub 包注册表 that you can install in your own project. For more information, see "Searching GitHub 包注册表 for packages."

After you find a package, you can read the package's description and installation and usage instructions on the package page.

安装包

You can install a package from GitHub 包注册表 using any supported package client by following the same general guidelines.

  1. Authenticate to GitHub 包注册表 using the instructions for your package client. For more information, see "About tokens."
  2. Install the package using the instructions for your package client.

For instructions specific to your package client, see "Using GitHub 包注册表 with your project's ecosystem."

问问别人

找不到要找的内容?

联系我们