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 }