You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running serverless package results in the error Error: EPERM: operation not permitted, unlink '..../.build/node_modules' and I can't move forward. Here's the information about my system:
Your Environment Information ---------------------------
Operating System: darwin
Node Version: 14.17.6
Framework Version: 2.58.0 (local)
Plugin Version: 5.4.4
SDK Version: 4.3.0
Components Version: 3.17.0
Here is the output when running serverless package:
Serverless: Running "serverless" installed locally (in service node_modules)
Serverless: Compiling with Typescript...
Serverless: Using local tsconfig.json
Serverless: Typescript compiled.
Error ---------------------------------------------------
Error: EPERM: operation not permitted, unlink '/Users/..../.build/node_modules'
at Object.unlinkSync (fs.js:1251:3)
at TypeScriptPlugin.<anonymous> (/Users/..../node_modules/serverless-plugin-typescript/dist/src/index.js:176:24)
at Generator.next (<anonymous>)
at /Users/..../node_modules/serverless-plugin-typescript/dist/src/index.js:8:71
at new Promise (<anonymous>)
at __awaiter (/Users/..../node_modules/serverless-plugin-typescript/dist/src/index.js:4:12)
at TypeScriptPlugin.copyDependencies (/Users/..../node_modules/serverless-plugin-typescript/dist/src/index.js:170:16)
at TypeScriptPlugin.<anonymous> (/Users/..../node_modules/serverless-plugin-typescript/dist/src/index.js:46:28)
at Generator.next (<anonymous>)
at fulfilled (/Users/..../node_modules/serverless-plugin-typescript/dist/src/index.js:5:58)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
I am using the serverless-plugin-typescript plugin and the problem seems to stem from that. I've tried a number of different things: downgrading the plugin to 1.1.7 per this issue, deleting .serverless/, .build/, node_modules/, and yarn.lock and running yarn for a fresh start, and upgrading serverless and node, but nothing helps.
@leorrodrigues I had made a mistake somewhere so that when I thought I was downgrading to v1.1.7 I wasn't actually downgrading. When I figured that out and actually downgraded to v1.1.7, the error went away, just like #170 says.
@ashawley No, I was using v1.1.9. Yes, I thought I had actually linked to #170 in the original post (that's what I had meant to do), but apparently I missed the link. I've updated the issue so that it links.
Uh oh!
There was an error while loading. Please reload this page.
Running
serverless package
results in the errorError: EPERM: operation not permitted, unlink '..../.build/node_modules'
and I can't move forward. Here's the information about my system:Here is the output when running
serverless package
:I am using the
serverless-plugin-typescript
plugin and the problem seems to stem from that. I've tried a number of different things: downgrading the plugin to 1.1.7 per this issue, deleting.serverless/
,.build/
,node_modules/
, andyarn.lock
and runningyarn
for a fresh start, and upgrading serverless and node, but nothing helps.Here is my tsconfig.json file:
And here is my
serverless.yml
file:Please let me know if you need any more information from me.
The text was updated successfully, but these errors were encountered: