Assumes your Lambda handler (eg index.js
, app.js
, etc) is in the current
directory and you've already run npm install
locally (ie, you have
./node_modules
already) – the OS you ran it on shouldn't matter.
This will reinstall any native module binaries, with our current directory mounted as
/var/task
, which mirrors where it mounts in Lambda