On this page
Help Center/ CodeArts Build/ FAQs/ Using npm for Build/ Low Efficiency and Slow Dependency Installation During Build with npm

Low Efficiency and Slow Dependency Installation During Build with npm

Updated on 2023-11-28 GMT+08:00

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.
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback