]> git.openstreetmap.org Git - chef.git/commitdiff
Use --ignore-engines when installing node modules with yarn
authorTom Hughes <tom@compton.nu>
Tue, 27 Jul 2021 16:40:17 +0000 (17:40 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 27 Jul 2021 16:40:17 +0000 (17:40 +0100)
cookbooks/web/resources/rails_port.rb

index 16fde7131cc1e76758202521edb8f9afb25f0f8c..564cbd0adf1cd5e8498ebe40b5054f4fde649eca 100644 (file)
@@ -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