From 310af28c973a1bf9d22ac396561fbff4e73d0b9d Mon Sep 17 00:00:00 2001 From: André Oliveira Date: Sat, 23 Apr 2022 19:37:57 -0500 Subject: fix more paths for cleaning in the Windows script [skip ci] --- scripts/build-windows.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts/build-windows.ps1') diff --git a/scripts/build-windows.ps1 b/scripts/build-windows.ps1 index 1f4a890c3..c871d0507 100644 --- a/scripts/build-windows.ps1 +++ b/scripts/build-windows.ps1 @@ -65,8 +65,10 @@ if (-not (Test-Path -Path recipes\package.json -PathType Leaf)) { # so that there's no irregular results due to cached modules if ($env:CLEAN -eq "true") { - $NPM_PATH = "$USERHOME\.npm" - $NODE_GYP = "$USERHOME\.node-gyp" + $NPM_PATH = "$USERHOME\AppData\Roaming\npm\node_modules" + $NPM_CACHE1_PATH = "$USERHOME\AppData\Local\npm-cache" + $NPM_CACHE2_PATH = "$USERHOME\AppData\Roaming\npm-cache" + $NODE_GYP = "$USERHOME\AppData\Local\node-gyp" $ELECTRON_GYP = "$USERHOME\.electron-gyp" Write-Host "Cleaning!" @@ -84,6 +86,8 @@ if ($env:CLEAN -eq "true") npm cache clean --force Remove-Item -Path $NPM_PATH -Recurse -ErrorAction SilentlyContinue + Remove-Item -Path $NPM_CACHE1_PATH -Recurse -ErrorAction SilentlyContinue + Remove-Item -Path $NPM_CACHE2_PATH -Recurse -ErrorAction SilentlyContinue Remove-Item -Path $NODE_GYP -Recurse -ErrorAction SilentlyContinue Remove-Item -Path $ELECTRON_GYP -Recurse -ErrorAction SilentlyContinue -- cgit v1.2.3-70-g09d2