forked from coolaj86/node-installer.sh
add yarn
This commit is contained in:
parent
1a41b29bfb
commit
49d19e6cdb
10
setup.bash
10
setup.bash
|
@ -282,10 +282,16 @@ if [ -n "${NODEJS_VER}" ]; then
|
||||||
bash "/tmp/${INSTALL_FILE}" "${NODEJS_VER}"
|
bash "/tmp/${INSTALL_FILE}" "${NODEJS_VER}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# yarn
|
||||||
|
if [ -z "$(type -p yarn)" ]; then
|
||||||
|
echo "installing yarn..."
|
||||||
|
npm install --silent yarn -g > /dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
# jshint
|
# jshint
|
||||||
if [ -z "$(which jshint | grep jshint)" ]; then
|
if [ -z "$(type -p jshint)" ]; then
|
||||||
echo "installing jshint..."
|
echo "installing jshint..."
|
||||||
npm install --silent jshint -g > /dev/null
|
yarn install --silent jshint -g > /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|
Loading…
Reference in New Issue