From 5715ded771415bc4cc53702755b593fb23112a4f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 26 Jun 2018 15:30:38 +0100 Subject: [PATCH 1/1] Don't install nodejs-legacy on Ubuntu 18.04 --- cookbooks/nodejs/recipes/default.rb | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/cookbooks/nodejs/recipes/default.rb b/cookbooks/nodejs/recipes/default.rb index 0e616ea19..87af7d656 100644 --- a/cookbooks/nodejs/recipes/default.rb +++ b/cookbooks/nodejs/recipes/default.rb @@ -17,8 +17,13 @@ # limitations under the License. # -package "nodejs" -package "nodejs-legacy" -package "npm" -package "g++" -package "make" +package %w[ + nodejs + npm + g++ + make +] + +if node[:lsb][:release].to_f < 18.04 + package "nodejs-legacy" +end -- 2.43.2