]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nodejs/recipes/default.rb
Switch to using nodesource repos for nodejs
[chef.git] / cookbooks / nodejs / recipes / default.rb
index 5f8ca526b4f6b0e491af932a1f2614576d13d377..1c610fe1b892d0ac9ec6bdd34b9e4bdb8c8c72a1 100644 (file)
 # limitations under the License.
 #
 
+include_recipe "apt::nodesource"
+include_recipe "apt::yarn"
+
+package %w[libnode72 npm yarnpkg] do
+  action :purge
+end
+
 package %w[
   nodejs
-  npm
+  yarn
   g++
   make
 ]
-
-template "/usr/local/bin/yarn" do
-  source "yarn.erb"
-  owner "root"
-  group "root"
-  mode "755"
-end