我正在尝试部署Netlify Lambda函数,但我得到了以下构建错误:
...
11:00:00 PM: Build script success
11:00:00 PM: Failing build: Failed to build site
11:00:00 PM: failed during stage 'building site': Deploy directory 'build' does not exist
软件包.json
...
"scripts": {
"build": "netlify-lambda build src/lambda"
},
...
我错过了什么?
尝试将"yarn"添加到"构建"脚本中,如下所示:
...
"scripts": {
"build": "yarn netlify-lambda build src/lambda"
},
...
您可以运行此命令
npm install netlify-lambda --save