0

I'm trying to deploy a Netlify Lambda Functions, and I'm getting this build error:

...
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

package.json

...
"scripts": {
    "build": "netlify-lambda build src/lambda"
},
...

What am I missing?

2 Answers 2

1

try to add "yarn" to the "build" script, like so:

...
"scripts": {
    "build": "yarn netlify-lambda build src/lambda"
},
...
Sign up to request clarification or add additional context in comments.

Comments

0

you can run this command

npm install netlify-lambda --save

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.