我的计算机上的云功能可以使用 Javascript,但是当我使用 TypeScript 尝试它时,它不会编译为 Javascript。它不会创建 lib/index.js 事件
\n\n当我运行 firebase 部署时,它显示以下错误
\n\nError: There was an error reading functions/package.json:\nRun Code Online (Sandbox Code Playgroud)\n\nfirebase deploy --debug 显示以下日志:
\n\nAPPLEs-MacBook-Air:functions abbasi$ firebase deploy --debug\n[2020-01-08T08:39:06.383Z] ----------------------------------------------------------------------\n[2020-01-08T08:39:06.390Z] Command: /usr/local/bin/node /usr/local/bin/firebase deploy --debug\n[2020-01-08T08:39:06.390Z] CLI Version: 7.11.0\n[2020-01-08T08:39:06.390Z] Platform: darwin\n[2020-01-08T08:39:06.391Z] Node Version: v12.14.1\n[2020-01-08T08:39:06.392Z] Time: Wed Jan 08 2020 13:39:06 GMT+0500 (Pakistan Standard Time)\n[2020-01-08T08:39:06.393Z] ----------------------------------------------------------------------\n[2020-01-08T08:39:06.393Z] \n[2020-01-08T08:39:06.422Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]\n[2020-01-08T08:39:06.423Z] > authorizing via signed-in user\n[2020-01-08T08:39:06.426Z] [iam] checking project safepay-test for permissions ["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get"]\n[2020-01-08T08:39:06.429Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/safepay-test:testIamPermissions \n permissions=[cloudfunctions.functions.create, …Run Code Online (Sandbox Code Playgroud)