Update install.sh to temporarily edit the `PATH` to ensure correct `node` and `npm` versions are used during installation.
This commit is contained in:
parent
76193b3822
commit
34621cf288
12
install.sh
12
install.sh
|
@ -80,16 +80,28 @@ install_walnut()
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install node
|
# Install node
|
||||||
|
echo "----Installing Nodejs and NPM----"
|
||||||
echo "v8.2.1" > /tmp/NODEJS_VER
|
echo "v8.2.1" > /tmp/NODEJS_VER
|
||||||
daplie-install-node-dev
|
daplie-install-node-dev
|
||||||
npm install -g npm@4
|
npm install -g npm@4
|
||||||
|
|
||||||
# Install goldilocks
|
# Install goldilocks
|
||||||
|
echo "----Installing goldilocks.js----"
|
||||||
daplie-install-goldilocks
|
daplie-install-goldilocks
|
||||||
|
|
||||||
|
echo "----Installing walnut.js----"
|
||||||
|
#$sudo_cmd mkdir -p /opt/goldilocks/{lib,bin,etc}
|
||||||
|
#export NODE_PATH=/opt/walnut/lib/node_modules
|
||||||
|
#export NPM_CONFIG_PREFIX=/opt/walnut
|
||||||
|
old_PATH=$PATH
|
||||||
|
export PATH=/opt/walnut/bin:$PATH
|
||||||
|
|
||||||
# Install walnut
|
# Install walnut
|
||||||
install_walnut
|
install_walnut
|
||||||
|
|
||||||
|
# Restore PATH to original value
|
||||||
|
export PATH=$old_PATH
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "You must have some set of domain set up to properly use goldilocks+walnut:"
|
echo "You must have some set of domain set up to properly use goldilocks+walnut:"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
Loading…
Reference in New Issue