我正在尝试创建一个无服务器的项目。但是在cmd上给出serverless命令时会出现错误。请帮我解决这个问题。
首先,我使用'npm install -g serverless‘命令安装了无服务器。然后我发出了'serverless‘的命令。因此,在cmd上显示了以下错误。
C:\Geethma\myFiles\serverlessTutorial>serverless
Creating a new serverless project
? What do you want to make? AWS - Node.js - Starter
? What do you
当我试图在AWS上部署lambda时,我得到了下面的错误。
Serverless Error ---------------------------------------
An error occurred: WarmUpPluginLambdaFunction - The runtime parameter of nodejs6.10 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs10.x) while cre
我第一次尝试使用无服务器功能。更具体地说,我是否编写了一个nodejs12函数,我想将它部署在蔚蓝云上。
我用来做这个。当尝试使用sls offline在本地运行默认生成的函数(hello &话别)时,我总是收到以下错误:
Value cannot be null. (Parameter 'provider')
虽然我确信这不是空值,但正如您在我的serverless.yml中看到的那样:
service: test
provider:
name: azure
region: North Europe
runtime: nodejs12
plugins:
当我在apolly-server-lambda应用程序中启动游乐场时,我得到了这个错误: Playground.tsx:289 SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at index.js:40 这个应用程序只有一个测试解析器。我使用type-graphql来定义模式: @Resolver()
export class InviteResolver {
@Query(() => String)
hello() {
retur
我正在尝试组织这个无服务器的YML文件,但是失败了。我扫描了他们的文档,以了解如何通过文件替换进行内插,但我就是搞不明白:
我读过所有这些:
偏误
Serverless Error ----------------------------------------
The CloudFormation template is invalid: [/Resources/IamRoleLambdaExecution/Type/Policies/0/PolicyDocument/Statement/2] 'null' values are not allowed in tem