Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
in AWS by (19.1k points)

I'm trying to deploy a rails 5.1 & react app created with webpacker gem using AWS Elastic Beanstalk. The problem is I keep getting the following error:

Webpacker requires Node.js >= 6.0.0 and you are using 4.6.0

I'm using Node 9.5.0 on my computer. Any suggestions??

1 Answer

0 votes
by (44.4k points)

To install nodejs using yum (assuming you're using the default Amazon Linux)

curl --silent --location | sudo bash -

yum -y install nodejs

Now to execute this on your instances, you need to add the required commands to a config file inside the .ebextensions dir, something like: .ebextensions/01_install_dependencies.config

File contents:



    command: curl --silent --location | sudo bash -


    command: yum -y install nodejs

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

Browse Categories