Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 90b58adf authored by Robert Nelson's avatar Robert Nelson
Browse files

bb.org: setup NODE_PATH early


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 7de0186d
No related merge requests found
...@@ -158,6 +158,10 @@ build_node () { ...@@ -158,6 +158,10 @@ build_node () {
echo "debug: node: [`node --version`]" echo "debug: node: [`node --version`]"
echo "debug: npm: [`npm --version`]" echo "debug: npm: [`npm --version`]"
echo "NODE_PATH=/usr/local/lib/node_modules" > /etc/default/node
echo "export NODE_PATH=/usr/local/lib/node_modules" > /etc/profile.d/node.sh
chmod 755 /etc/profile.d/node.sh
#debug #debug
#echo "debug: npm config ls -l (before)" #echo "debug: npm config ls -l (before)"
#echo "--------------------------------" #echo "--------------------------------"
...@@ -273,10 +277,6 @@ install_repos () { ...@@ -273,10 +277,6 @@ install_repos () {
chown -R ${user_name}:${user_name} ${git_target_dir} chown -R ${user_name}:${user_name} ${git_target_dir}
cd ${git_target_dir}/ cd ${git_target_dir}/
echo "NODE_PATH=/usr/local/lib/node_modules" > /etc/default/node
echo "export NODE_PATH=/usr/local/lib/node_modules" > /etc/profile.d/node.sh
chmod 755 /etc/profile.d/node.sh
wfile="/etc/default/cloud9" wfile="/etc/default/cloud9"
echo "NODE_PATH=/usr/local/lib/node_modules" > ${wfile} echo "NODE_PATH=/usr/local/lib/node_modules" > ${wfile}
echo "HOME=/root" >> ${wfile} echo "HOME=/root" >> ${wfile}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment