Skip to content

Commit 73cb02b

Browse files
committed
chore: try again
1 parent 1bc0fe6 commit 73cb02b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ 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 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
35+
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then rm -rf $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
4036
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then npm install -g npm@latest ; fi
4137
# restore default prefix for windows - https://travis-ci.community/t/command-npm-i-g-npm-latest-fails/431/7
4238
#- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then export NPM_CONFIG_PREFIX=""; fi

0 commit comments

Comments
 (0)