Amazon Elastic Beanstalk npm cant find package.json

前端 未结 3 1208
攒了一身酷
攒了一身酷 2021-02-18 21:12

I\'m very new with amazon web services, and I am trying to set up a node.js app on their elastic beanstalk. I set up the instance and uploaded/deployed the site, but while the h

3条回答
  •  半阙折子戏
    2021-02-18 21:55

    I was having these odd error on AWS EB as well. I was generally deploying using the CLI.

    couple things to try.

    1. make sure the package.json is not in your .gitignore file, to ensure it is being committed to your repository. EB uses the git commit history to decide what to zip and send. If that isnt included it is not on the AWS servers

    2. i was using the t2.nano instance (512MB space) option for EC and that seemed to be an issue because I had a lot of modules in my package.json. Wasnt sure if that was the root issue of my woes but my error messages changed when I upgraded to an instance that had at least 1GB of space.

    hope this helps

提交回复
热议问题