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
• 18,570 points

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
• 52,370 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 24, 2018 in DevOps on Cloud by shubham
• 7,320 points
0 votes
2 answers
0 votes
1 answer
0 votes
0 answers

How to mount the S3 bucket using IAM role or S3fs and use in ElasticBeanstalk

Hi Team, Can you please confirm how we ...READ MORE

Sep 20, 2019 in DevOps on Cloud by rahulkathpal
• 120 points
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 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
• 52,370 points
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
• 52,370 points