Joi: [Question] Whats version of Joi should i use in AWS Lambda?

Created on 23 Oct 2017  路  5Comments  路  Source: sideway/joi

Context

  • node version: 6.10.x
  • joi version: 13.0.1
  • environment (node, browser): node
  • used with (hapi, standalone, ...): serverless

What are you trying to achieve or the steps to reproduce ?

Hi guys, i want to use Joi in my AWS Lambda functions, but today i tried to deploy and got this error:

error [email protected]: The engine "node" is incompatible with this module. Expected version ">=8.3.0".
error Found incompatible module

AWS Lambda use node v6.10. What version of Joi should i use?

support

Most helpful comment

12

All 5 comments

12

@AdriVanHoudt Thanks! :D
Is it worth to make any mention on the docs about this?

IMHO it's not. Most node developers should know how to look that information up in the package.json.

Is this still valid?

We removed the engine part. I'm not sure what lambda runs, we're on the road to only support node 10+ so better check.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

a-c-m picture a-c-m  路  3Comments

jamesdixon picture jamesdixon  路  4Comments

Dreamystify picture Dreamystify  路  4Comments

neroaugustus1 picture neroaugustus1  路  4Comments

normancarcamo picture normancarcamo  路  3Comments