![](/img/trans.png)
[英]I'm trying to deploy my simple typescript app to firebase cloud functions. But I have got this error
[英]How can I fix this error? I am trying to deploy stub API on AWS. I have fired sls deploy command
錯誤:EPERM:不允許操作,在 TypeScriptPlugin 的 Object.unlinkSync (fs.js:1162:3) 處取消鏈接“G:\scalex\Agency portal.build\node_modules”。 (G:\scalex\Agency portal\node_modules\serverless-plugin-typescript\dist\src\index.js:172:24) 在 Generator.next () 在 G:\scalex\Agency portal\node_modules\serverless-plugin- typescript\dist\src\index.js:7:71 at new Promise () at __awaiter (G:\scalex\Agency portal\node_modules\serverless-plugin-typescript\dist\src\index.js:3:12) at TypeScriptPlugin.copyDependencies (G:\scalex\Agency portal\node_modules\serverless-plugin-typescript\dist\src\index.js:166:16) 在 TypeScriptPlugin。 (G:\scalex\Agency portal\node_modules\serverless-plugin-typescript\dist\src\index.js:44:28) 在 Generator.next () 完成時 (G:\scalex\Agency portal\node_modules\serverless-插件打字稿\dist\src\index.js:4:58)
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
這似乎是 TypeScriptPlugin 的一個已知權限問題。 您可以嘗試在此處遵循其他人的建議,並刪除.build
和.serverless
目錄並重新運行命令:
https://github.com/prisma-labs/serverless-plugin-typescript/issues/170
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.