AWS Certified Solutions Architect - Professional 2020

Sign Up Free or Log In to participate!

ERROR – Failed to find package.json in Elastic Beanstalk environment creation (v1)

Hi folks! I tried to do the Elastic Beanstalk lab (Insults v1) but when AWS goes to create the v1 version of the environment it presents the following error: Failed to find package.json. Node.js may have issues starting. Verify package.json is valid or place code in a file named server.js or app.js.

I have cloned the git lab structures, zipped v1 folder, uploaded a ZIP file containing all v1 files with all folder structure and followed the instructions. Any ideas?

Thanks

Andre Mello

1 Answers

Hi Andre,

You might want to be sure that your zip file does have the v1 folder as it’s root…that it’s not somehow being zippped as /v1/.  Not sure of your OS, but rather than right-click  on the folder, go into the folder and highlight all files in there then select Compress or Zip or whatever your OS uses.

–Scott

Michaeldevsec

@Scott, you are amazing, hopefully I will be able to pass the exam first time

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?