Error: EPERM: operation not permitted, unlink when serverless deploy

x·2022년 3월 4일
0
Error: EPERM: operation not permitted, unlink '/Users/mh/projects/external-api-caching/.build/node_modules'
      at Object.unlinkSync (fs.js:1155:3)
      at TypeScriptPlugin.<anonymous> (/Users/mh/projects/external-api-caching/node_modules/serverless-plugin-typescript/dist/src/index.js:197:24)
      at Generator.next (<anonymous>)
      at /Users/mh/projects/external-api-caching/node_modules/serverless-plugin-typescript/dist/src/index.js:8:71
      at new Promise (<anonymous>)
      at __awaiter (/Users/mh/projects/external-api-caching/node_modules/serverless-plugin-typescript/dist/src/index.js:4:12)
      at TypeScriptPlugin.copyDependencies (/Users/mh/projects/external-api-caching/node_modules/serverless-plugin-typescript/dist/src/index.js:191:16)
      at TypeScriptPlugin.<anonymous> (/Users/mh/projects/external-api-caching/node_modules/serverless-plugin-typescript/dist/src/index.js:60:28)
      at Generator.next (<anonymous>)
      at fulfilled (/Users/mh/projects/external-api-caching/node_modules/serverless-plugin-typescript/dist/src/index.js:5:58)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
 
     For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

remove .build/ and .serverless/ and redeploy

0개의 댓글