From 271b3a0b8225a3aee0e023d1ff2ecb1f4aac1785 Mon Sep 17 00:00:00 2001 From: Matt Irvine Date: Thu, 14 Dec 2017 15:20:19 -0800 Subject: [PATCH] Minor build script changes (#329) --- scripts/npm.bat | 1 - scripts/npm.sh | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/npm.bat b/scripts/npm.bat index 9c3e6fbf6b..eadf803490 100644 --- a/scripts/npm.bat +++ b/scripts/npm.bat @@ -13,6 +13,5 @@ for /F "tokens=* USEBACKQ" %%V IN (`npm --version`) do ( set CURRENTNPMVERSION=%%V ) if not %CURRENTNPMVERSION%==%SUPPORTEDNPMVERSION% ( - color 0e echo NPM version %CURRENTNPMVERSION% is not supported with this project. We strongly recommend to use version %SUPPORTEDNPMVERSION% ) diff --git a/scripts/npm.sh b/scripts/npm.sh index f9ad5552d5..24a9caf1f9 100755 --- a/scripts/npm.sh +++ b/scripts/npm.sh @@ -9,7 +9,7 @@ else ROOT=$(dirname "$(dirname "$(readlink -f $0)")") # if [ -z $npm_config_arch ]; then - # npm_config_arch=$(npm -p process.arch) + # npm_config_arch=$(node -p process.arch) # echo "Warning: remember to set \$npm_config_arch to either x64 or ia32 to build the binaries for the right architecture. Picking '$npm_config_arch'." # fi fi @@ -31,6 +31,5 @@ npm $* CURRENTNPMVERSION=`npm --version` if [[ "$CURRENTNPMVERSION" != "$SUPPORTEDNPMVERSION" ]]; then - YELLOW='\033[1;33m' - echo -e "${YELLOW}NPM version ${CURRENTNPMVERSION} is not supported with this project. We strongly recommend to use version ${SUPPORTEDNPMVERSION}" + echo "NPM version ${CURRENTNPMVERSION} is not supported with this project. We strongly recommend to use version ${SUPPORTEDNPMVERSION}" fi