How do I test if an installed global package is working in Elastic Beanstalk running Linux Ubuntu

I'm using ssh to try to debug why GraphicsMagick isn't working. "node -v" and "ng version" both are unrecognized commands when I know those have to be installed for the app to work, and the app definitely works. So, what's the deal? How do I test if graphics magick is installed correctly?

1 answer

  • answered 2018-06-19 21:06 Steven Lu

    Elastic Beanstalk provides compiled instances for you. The actual node package is located in /opt/elasticbeanstalk/node-install

    GraphicsMagick is not a pre-installed package in the Elastic Beanstalk instances and you will need to install it yourself using .ebextensions

    You'd need to create a file in your codebase like: .ebextensions/graphicsmagick.config with the following contents:

        command: yum install -y --enablerepo=epel GraphicsMagick

    Reference: Graphicsmagick not working in Elastic Beanstalk with nodejs and S3