From 48bba6cc8ca5912ec21d08f096ee07bd51666203 Mon Sep 17 00:00:00 2001 From: Kyle Robinson Young Date: Sat, 8 Jul 2017 22:36:26 -0700 Subject: [PATCH] Move to the test script to avoid npm was unexpected at this time. --- appveyor.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index e8b8bdc17..2f2f6acf1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -16,9 +16,10 @@ platform: - x64 install: - ps: Install-Product node $env:nodejs_version - - cmd: if [[ `npm -v` =~ ^[1-2] ]]; then npm i -g npm@3; fi - npm install test_script: + # Install npm@3 if the npm version is 1 or 2 + - if [[ `npm -v` =~ ^[1-2] ]]; then npm i -g npm@3; fi # Output useful info for debugging. - node --version && npm --version # We test multiple Windows shells because of prior stdout buffering issues