Website Design and Mobile Application Development in Austin, Texas


Fixing EACCES error when deploying Node 8 apps on Amazon Elastic Beanstalk

Recently, when working on deploying a nodejs app for a customer on Elastic Beanstalk and was encountering an issue during the deployment.  Here’s the error from the eb-activity.log.

gyp verb `which` failed code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python /usr/bin/python
gyp verb check python version `/usr/bin/python -c "import platform; print(platform.python_version());"` returned: "2.7.12\n"
gyp verb get node dir no --target version specified, falling back to host node version: 8.8.1
gyp verb command install [ '8.8.1' ]
gyp verb install input version string "8.8.1"
gyp verb install installing version: 8.8.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, 
Read the rest