Help Center/ CodeArts Build/ FAQs/ npm Builds/ Why Does It Take Long to Install Dependencies and Build?
Updated on 2024-10-10 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. Log in to CodeArts Build.
  2. Select the corresponding build task, click in the row of the task, 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 Run to execute the build task again.