Help Center/ CodeArts Build/ FAQs/ npm Builds/ Why Am I Seeing the Error Message "gyp ERR!"? stack Error: EACCES: permission denied
Updated on 2024-10-10 GMT+08:00

Why Am I Seeing the Error Message "gyp ERR!"? stack Error: EACCES: permission denied

Symptoms

When the npm build task is executed, the following error information is displayed in the log.

gyp ERR! stack Error: EACCES: permission denied, mkdir '******/job_1451ba57-0c35-4daa-99c2-21425404f61c_1564043318112/saas_shop/node_modules/node-sass/.node-gyp'

Cause Analysis

The current directory does not have the read and write permissions.

Solution

Edit the task, add node-sass --unsafe-perm=true after the npm install command, save the task, and execute the task again.