From 19fc161162a59c85c389ad1664346cd7145f21b0 Mon Sep 17 00:00:00 2001 From: Dan McPherson Date: Wed, 12 Oct 2016 17:04:43 -0400 Subject: [PATCH] Stop updating npm for rhel --- .../action/install_origin_asset_dependencies.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/vagrant-openshift/action/install_origin_asset_dependencies.rb b/lib/vagrant-openshift/action/install_origin_asset_dependencies.rb index 66d0afb3..6cd8e9bd 100644 --- a/lib/vagrant-openshift/action/install_origin_asset_dependencies.rb +++ b/lib/vagrant-openshift/action/install_origin_asset_dependencies.rb @@ -35,8 +35,11 @@ def call(env) if ! which npm > /dev/null 2>&1 ; then sudo yum -y install npm - # Update npm, we need a newer version than is installed by yum - sudo npm install npm@3.7.3 -g + if $(test -e /etc/fedora-release) + then + # Update npm, we need a newer version than is installed by yum + sudo npm install npm@3.7.3 -g + fi fi }