Update setup.bash
This commit is contained in:
parent
efe4bde88e
commit
b96b79f3ed
|
@ -263,15 +263,15 @@ fi
|
|||
echo "Install path is $node_install_path"
|
||||
if [ -e "$node_install_path/bin/node" ]; then
|
||||
# node of some version is already installed
|
||||
if [ "${NODEJS_VER}" == "$(node -v 2>/dev/null)" ]; then
|
||||
if [ "${NODEJS_VER}" == "$($node_install_path/bin/node -v 2>/dev/null)" ]; then
|
||||
echo node ${NODEJS_VER} is already installed
|
||||
else
|
||||
echo ""
|
||||
echo "HEY, LISTEN:"
|
||||
echo ""
|
||||
echo "node.js is already installed as node $(node -v | grep v)"
|
||||
echo "node.js is already installed as node $($node_install_path/bin/node -v | grep v)"
|
||||
echo ""
|
||||
echo "to reinstall please first run: rm $(type -p node)"
|
||||
echo "to reinstall please first run: rm $node_install_path/bin/node"
|
||||
echo ""
|
||||
fi
|
||||
|
||||
|
@ -338,7 +338,7 @@ if [ -z "$dont_install_deps" ]; then
|
|||
if [ -z "$(type -p jshint)" ]; then
|
||||
echo "installing jshint..."
|
||||
#yarn global add jshint > /dev/null
|
||||
npm install -g jshint > /dev/null
|
||||
$node_install_path/bin/npm install -g jshint > /dev/null
|
||||
fi
|
||||
|
||||
echo ""
|
||||
|
|
Loading…
Reference in New Issue