You need to enable JavaScript to run this app.
Container Registry

Container Registry

Copy page
Download PDF
Downloading packages
Downloading packages (command line)
Copy page
Download PDF
Downloading packages (command line)
Downloading packages is one of the fundamental functions of an artifact repository, enabling you to download packages from the artifact repository to your local environment. This section explains how to download packages from the artifact repository to your local environment.​
Prerequisites​
  • Have registered a Volcano Engine root user and activated the artifact repository Service.​
  • A repository instance has been created. For details, refer to Creating basic edition instances.​
  • An artifact repository has been created. For details, please refer to Creating NPM repositories.​
Procedure​
  1. Configure local credentials.​
  • For MAC Systems: Execute the following command to configure local access credentials. ​
  • ​
    npm config set //{repository_url}:_auth=$(echo -n '{username}:{password}' | base64)​
    ​
  • For Linux Systems: Execute the following command to configure local access credentials. ​
  • ​
    npm config set //{repository_url}:_auth=$(echo -n '{username}:{password}' | base64 -w 0)​
    ​
  • ​
    Parameter​
    Description​
    ​
    The URL of the artifact repository, which can be viewed and obtained in the artifact repository details. For details, please refer to Managing repositories.​
    No need to add the https:// prefix during configuration. The example is as follows:​
    ​
    npm config set //artifacts-beijing.volces.com/repository/npm-demo/:_auth...
    ​
    '{username}:{password}'​
    The login credentials for the artifact repository, e.g., user_demo@2100012345:cf83200******. ​
    tip​
    You can configure either permanent or temporary access credentials:​
    ​
  1. Execute the following command to download packages.​
​
npm install <PACKAGE>@<VERSION> --registry={registry}​
​
​
Parameter​
Description​
<PACKAGE>​
The name of the artifact package.​
<VERSION>​
The version of the artifact package.​
{registry}​
The URL of the artifact repository, which can be viewed and obtained in the artifact repository details. For details, please refer to Managing repositories.​
​
​
Last updated: 2025.10.24 11:20:38