You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
280 B
Bash
15 lines
280 B
Bash
5 years ago
|
#!/bin/bash
|
||
|
|
||
|
echo "Installing node modules into www..."
|
||
|
|
||
|
cd www
|
||
|
|
||
|
if type "yarn" > /dev/null; then
|
||
|
yarn install
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
# If Yarn isn't installed, use npm
|
||
|
echo "Warning: using npm install instead of the preferred yarn install"
|
||
|
echo "Consider installing Yarn"
|
||
|
npm install
|