Skip to content

Commit

Permalink
fix: nvm not in path
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyOGo committed Mar 18, 2023
1 parent fe69d6a commit 746cbb0
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ configuration:
environment:
matrix:
- nodejs_version: "16"
- nodejs_version: "14"
- nodejs_version: "12"
- nodejs_version: "10"
- nodejs_version: "8"
#- nodejs_version: "14"
#- nodejs_version: "12"
#- nodejs_version: "10"
#- nodejs_version: "8"
# - nodejs_version: "6"
# - nodejs_version: "4"

image: Visual Studio 2019
matrix:
fast_finish: false
exclude:
- configuration: Native
nodejs_version: "16"
- configuration: WSL
nodejs_version: "8"
- configuration: WSL
Expand All @@ -29,7 +31,7 @@ matrix:

platform:
- x86
- x64
#- x64

# Initialization scripts. (runs before repo cloning)
init:
Expand Down Expand Up @@ -156,7 +158,15 @@ for:
- ps: $env:WSLENV += ":nodejs_version"
- ps: wsl sudo apt-get purge --auto-remove nodejs
- ps: wsl sudo apt-get install dos2unix
- wsl printenv
- wsl touch ~/.bash_profile
- wsl curl --fail -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | dos2unix | bash
# - wsl export NVM_DIR="$HOME/.nvm"
- wsl $env:NVM_DIR="$HOME/.nvm"
#- ps: $env:WSLENV += ":NVM_DIR"
- wsl echo $HOME
- wsl echo $NVM_DIR
- wsl [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
- wsl nvm install ${nodejs_version}

on_success:
Expand Down

0 comments on commit 746cbb0

Please sign in to comment.