'Netlify Lambda Functions - Failing Build

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?



Solution 1:[1]

you can run this command

npm install netlify-lambda --save

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Anes Diaf