Updated Node package install script to use NPM

Yarn has fallen out of favor in the community so have switched to
native NPM support instead.
This commit is contained in:
Brooke Kuhlmann
2021-07-28 21:46:41 -06:00
parent f790b05831
commit 2e95c72d57
3 changed files with 9 additions and 9 deletions

View File

@@ -101,15 +101,15 @@ get_install_root() {
}
export -f get_install_root
# Checks Yarn has been installed and exits if otherwise.
# Checks NPM has been installed and exits if otherwise.
# Parameters: None.
check_yarn_install() {
if ! command -v yarn > /dev/null; then
printf "%s\n" "ERROR: Yarn can't be found. Please ensure Homebrew and Yarn have been installed."
check_npm_install() {
if ! command -v npm > /dev/null; then
printf "%s\n" "ERROR: NPM can't be found. Please ensure Homebrew and NPM have been installed."
exit 1
fi
}
export -f check_yarn_install
export -f check_npm_install
# Checks Mac App Store (mas) CLI has been installed and exits if otherwise.
# Parameters: None.