From c95478046eb46f37cd94e7459d4e8adf1d70b7c7 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 27 Jul 2021 17:40:17 +0100 Subject: [PATCH] Use --ignore-engines when installing node modules with yarn --- cookbooks/web/resources/rails_port.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/web/resources/rails_port.rb b/cookbooks/web/resources/rails_port.rb index 16fde7131..564cbd0ad 100644 --- a/cookbooks/web/resources/rails_port.rb +++ b/cookbooks/web/resources/rails_port.rb @@ -407,7 +407,7 @@ action :create do execute "#{rails_directory}/package.json" do action :nothing - command "bundle#{new_resource.ruby} exec rake yarn:install" + command "yarnpkg install --ignore-engines" environment "HOME" => rails_directory, "RAILS_ENV" => "production" cwd rails_directory -- 2.43.2