Skip to content

Commit 1bc0fe6

Browse files
committed
chore: vars
1 parent f29cd5a commit 1bc0fe6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ before_install:
3232
#- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then export NPM_CONFIG_PREFIX=c:\\npm_prefix PATH=/c/npm_prefix:$PATH; fi
3333
# workspaces require npm 7 or above
3434
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then export NODE_INSTALL_DIR=`npm prefix -g` ; fi
35-
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then ren $NODE_INSTALL_DIR/node_modules/npm $NODE_INSTALL_DIR/node_modules/npm_old && node $NODE_INSTALL_DIR/node_modules/npm_old/bin/npm-cli.js i -g npm@latest ; fi
35+
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then echo $NODE_INSTALL_DIR ; fi
36+
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then echo %NODE_INSTALL_DIR% ; fi
37+
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then echo $PATH ; fi
38+
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then echo %PATH% ; fi
39+
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then ren %NODE_INSTALL_DIR%/node_modules/npm %NODE_INSTALL_DIR%/node_modules/npm_old && node %NODE_INSTALL_DIR%/node_modules/npm_old/bin/npm-cli.js i -g npm@latest ; fi
3640
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then npm install -g npm@latest ; fi
3741
# restore default prefix for windows - https://travis-ci.community/t/command-npm-i-g-npm-latest-fails/431/7
3842
#- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then export NPM_CONFIG_PREFIX=""; fi

0 commit comments

Comments
 (0)