r/node•
farhansyed7911

package.json not being read on AWS Beanstalk

I deployed a simple app to Beanstalk via terminal using eb deploy I have a package.json file in the main folder of my app like normal.

But it seems that when i do eb logs it doesn't read the package.json file.

npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open '/var/app/current/package.json'
npm ERR! enoent ENOENT: no such file or directory, open '/var/app/current/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! Please include the following file with any support request:
npm ERR!     /var/app/current/npm-debug.log
npm ERR! Linux 4.9.32-15.41.amzn1.x86_64 
npm ERR! argv "/opt/elasticbeanstalk/node-install/node-v6.11.1-linux-x64/bin/node" "/opt/elasticbeanstalk/node-install/node-v6.11.1-
linux-x64/bin/npm" "start" 
npm ERR! node v6.11.1
npm ERR! npm  v3.10.10
npm ERR! path /var/app/current/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open 

Any help would be appreciative!

Posted Jul 21, 2017, 10:36 PM UTC

11
Loading comments…