From: Tom Hughes Date: Tue, 27 Jul 2021 16:40:17 +0000 (+0100) Subject: Use --ignore-engines when installing node modules with yarn X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/c95478046eb46f37cd94e7459d4e8adf1d70b7c7?hp=6d95f5a022a420abd854280b3abeaaf9b7fb5eed Use --ignore-engines when installing node modules with yarn --- 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