#!/bin/bash

cd $OOS_SOURCE_DIR
if [ -n "$(command -v yum)" ]; then
  yum install gcc-c++ -y
elif [ -n "$(command -v apt-get)" ]; then
  apt-get install gcc -y
fi

git clone https://github.com/oracle/node-oracledb.git
cd node-oracledb

npm install -g --unsafe-perm

cd ${OOS_SOURCE_DIR}
cp profile.d/30oos_nodejs.sh /etc/profile.d/

#rerun profile to load full path
. /etc/profile

#!/bin/bash

cd $OOS_SOURCE_DIR
if [ -n "$(command -v yum)" ]; then
  yum install gcc-c++ -y
elif [ -n "$(command -v apt-get)" ]; then
  apt-get install gcc -y
fi

git clone https://github.com/oracle/node-oracledb.git
cd node-oracledb

npm install -g

cd ${OOS_SOURCE_DIR}
cp profile.d/30oos_nodejs.sh /etc/profile.d/

#rerun profile to load full path
. /etc/profile

--- 
+++ 
@@ -10,7 +10,7 @@
 git clone https://github.com/oracle/node-oracledb.git
 cd node-oracledb
 
-npm install -g
+npm install -g --unsafe-perm
 
 cd ${OOS_SOURCE_DIR}
 cp profile.d/30oos_nodejs.sh /etc/profile.d/
Fix for noisy output installing node4ords 

Fixes #243 