Skip to content

Commit

Permalink
Tweak yarn installation to be more reliable
Browse files Browse the repository at this point in the history
Set the npm config prefix and explicitly alter the path to avoid path issues on azure app service.

projectkudu/kudu#2176 (comment)
  • Loading branch information
chadly committed Sep 3, 2018
1 parent 19eaf0e commit 05dd519
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deploy.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ call :SelectNodeVersion

:: 3. Install Yarn
echo Verifying Yarn Install.
call :ExecuteCmd !NPM_CMD! config set prefix "D:\home\tools"
call :ExecuteCmd !NPM_CMD! install yarn -g
set path=%path%;D:\home\tools

:: 4. Install Yarn packages
echo Installing Yarn Packages.
Expand Down

0 comments on commit 05dd519

Please sign in to comment.