离线工作流程


【Offline workflow】

许多生产环境没有网络访问权限。由于 Corepack 通常直接从其注册表下载包管理器版本,这可能会与此类环境发生冲突。为了避免这种情况,请在仍然可以访问网络时(通常是在准备部署镜像时)运行 corepack prepare 命令。这将确保即使没有网络访问,也能使用所需的包管理器。

【Many production environments don't have network access. Since Corepack usually downloads the package manager releases straight from their registries, it can conflict with such environments. To avoid that happening, call the corepack prepare command while you still have network access (typically at the same time you're preparing your deploy image). This will ensure that the required package managers are available even without network access.】

prepare 命令具有 各种标志。有关更多信息,请查阅详细 Corepack 文档

【The prepare command has various flags. Consult the detailed Corepack documentation for more information.】