Help Center/ CodeArts Build/ FAQs/ npm Builds/ Why Does It Take Long to Install Dependencies and Build?
Updated on 2025-10-15 GMT+08:00

Why Does It Take Long to Install Dependencies and Build?

Cause Analysis

The default image repository address may cause low efficiency of downstream traffic on the network side due to network problems.

Solution

  1. Go to the CodeArts Build homepage.
  2. Select the build task, click , and click Edit.
  3. On the Build Actions page, modify the Build with npm action.
  4. In the Build with npm action, add the following command to change the address of the npm image repository:

    1
    npm config set registry https://repo.xxcloud.com/repository/npm/
    

    or

    npm config set registry https://registry.npm.taobao.org

  1. Click Save and Execute to execute the build task again.