aws-lambda Cannot find module

前端 未结 12 710
野性不改
野性不改 2020-12-06 04:20

I keep getting this error in the aws-lambda console when uploading code from a zip file. I have tried uploading other zip files and they work correctly. The .js file is name

12条回答
  •  眼角桃花
    2020-12-06 05:15

    This exact error can show up if your zipped file(s) do not have world-wide read permission. (chmod -R ugo+r).

    Check the file permissions before they are zipped. This is not emphasized enaugh unfortunately by AWS and it caused a lot of headaches for many.

提交回复
热议问题