How to use specific node version for yarn setup in AWS deployment?

0 votes

I have used yarn and webpacker for react setup in existing rails app. However I am getting setup failed in AWS deployment with following error.

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

I have added cookbook receipe for Yarn. On each deployment it is looking through cookbook receipe. How can I use specific node verion on yarn receipe?

Jul 20, 2018 in DevOps on Cloud by Hannah
• 14,080 points
64 views

1 answer to this question.

0 votes

You should be able to set your Node version by overwriting the appropriate attribute.

Step 1-Create a custom cookbook for your project

Step 2- Create a opsworks_nodejs/attributes/customize.rb file.

Step 3- Set the following in that file

                    normal[:opsworks_nodejs][:version] = '6.0.0'

This has worked for me in the past (a couple years ago) - there's been some shift since then but it still should be the same...

answered Jul 20, 2018 by Kalgi
• 37,420 points

Related Questions In DevOps on Cloud

0 votes
1 answer

How to manage Application version for VM's in Azure Autoscaling group

First of all, You have to launch ...READ MORE

answered Apr 23, 2018 in DevOps on Cloud by shubham
• 6,870 points
55 views
0 votes
2 answers
0 votes
1 answer
+2 votes
2 answers
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

Can i include custom data in a AWS cloudwatch alarm

You would have routied the alert event ...READ MORE

answered Aug 2, 2018 in DevOps on Cloud by Kalgi
• 37,420 points
29 views
0 votes
1 answer

Not able to find curator.yml (elasticsearch-curator) in linux

The documentation does not say that the ...READ MORE

answered Jul 20, 2018 in DevOps on Cloud by Kalgi
• 37,420 points
156 views