无服务器部署抛出spawn serverless ENOENT\n尝试部署时出现以下错误client-service,尽管在此之前所有服务都已部署。
\n\n错误:生成无服务器 ENOENT
\n
使用以下版本进行无服务器和无服务器组合
\n"@serverless/compose": "^1.3.0",\n"serverless": "^3.22.0",\nRun Code Online (Sandbox Code Playgroud)\nserverless-compose.ts 配置
\nconst serverlessCompose = {\n services: {\n "infra-test": {\n path: "infra-test",\n },\n "client-service": {\n path: "client-\'service\'",\n dependsOn: ["infra-test"],\n },\n },\n};\n\nmodule.exports = serverlessCompose;\n\nRun Code Online (Sandbox Code Playgroud)\n带有使用标志的完整命令名称(如果不适用,请填写“N/A”)
\nserverless deploy --stage sbx
完整的命令输出。
\ninfra-test \xe2\x80\xba \ninfra-test \xe2\x80\xba Stack Outputs:\ninfra-test \xe2\x80\xba ServerlessDeploymentBucketName: infra-test-sbx-serverlessdeploymentbucket-yg91fd\ninfra-test \xe2\x80\xba 3 deprecations found: run \'serverless doctor\' for more details\ninfra-test \xe2\x80\xba deployed\nclient-service \xe2\x80\xba deploying\nclient-service \xe2\x80\xba Running "serverless deploy …Run Code Online (Sandbox Code Playgroud) node.js typescript serverless-framework serverless-architecture serverless