Closed
Description
Hi,
I can't run serverless deploy --verbose
without getting the following issue:
Error: EPERM: operation not permitted, unlink '.../.build/node_modules'
at Object.unlinkSync (fs.js:951:3)
at TypeScriptPlugin.<anonymous> (.../node_modules/serverless-plugin-typescript/src/index.ts:195:12)
at Generator.next (<anonymous>)
at .../node_modules/serverless-plugin-typescript/dist/src/index.js:7:71
at new Promise (<anonymous>)
at __awaiter (.../node_modules/serverless-plugin-typescript/dist/src/index.js:3:12)
at TypeScriptPlugin.copyDependencies (.../node_modules/serverless-plugin-typescript/dist/src/index.js:166:16)
at TypeScriptPlugin.<anonymous> (.../node_modules/serverless-plugin-typescript/src/index.ts:45:20)
at Generator.next (<anonymous>)
at fulfilled (.../node_modules/serverless-plugin-typescript/dist/src/index.js:4:58)
at process._tickCallback (internal/process/next_tick.js:68:7)
The compilation of typescript seems to work as I get the message Serverless: Typescript compiled.
.
I can invoke all functions locally and they work without any issue. It's just the deploy that doesn't work.
I ran npm install
, closed all terminals including VSCode and reopened it. Same issue.
I cleaned the cache of npm but didn't help either.
My versions:
npm 6.14.8
Your Environment Information --------------------------- Operating System: darwin Node Version: 10.15.3 Framework Version: 2.8.0 Plugin Version: 4.1.1 SDK Version: 2.3.2 Components Version: 3.2.4
serverless-plugin-typescript: "^1.1.9"
Any idea?
Metadata
Metadata
Assignees
Labels
No labels