Help Center/ CodeArts Build/ FAQs/ Using npm for Build/ error: could not write config file
Updated on 2023-11-28 GMT+08:00

error: could not write config file

Symptoms

When an npm build task is executed, the following error information is reported in the log: error: could not write config file /npmcache/_cacache/tmp/git-clone-b0ba91a1/.git/config: Disk quota exceeded

Cause Analysis

The npm cache space is insufficient and needs to be cleared.

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. Add the npm cache clean -f command before the npm install command, save the task, and execute the task again.