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 75b8a11
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,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"
- ps: $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 75b8a11

Please sign in to comment.