You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .travis.yml
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,8 @@ before_install:
31
31
# change default prefix for windows - https://travis-ci.community/t/command-npm-i-g-npm-latest-fails/431/7
32
32
#- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then export NPM_CONFIG_PREFIX=c:\\npm_prefix PATH=/c/npm_prefix:$PATH; fi
33
33
# workspaces require npm 7 or above
34
-
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then ren `npm prefix -g`/node_modules/npm `npm prefix -g`/node_modules/npm_old && node `npm prefix -g`/node_modules/npm_old/bin/npm-cli.js i -g npm@latest ; fi
34
+
- 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
36
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then npm install -g npm@latest ; fi
36
37
# restore default prefix for windows - https://travis-ci.community/t/command-npm-i-g-npm-latest-fails/431/7
37
38
#- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then export NPM_CONFIG_PREFIX=""; fi
0 commit comments