Skip to content

Commit 4e54c54

Browse files
committed
Update WinPython.ps1
1 parent 4c282a8 commit 4e54c54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WinPython/WinPython.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ Invoke-WebRequest -uri "https://github.com$($fileUri)" -OutFile (Join-Path $Work
5858
$wpVer = $fileUri -replace ".*-((\d+\.)?(\d+\.)?(\d+\.)?(\*|\d+)).*\.exe",'$1'
5959

6060
Write-Verbose 'Downloading Node.js...'
61-
$releaseURI = 'https://nodejs.org/download/release/latest-v21.x'
61+
$releaseURI = 'https://nodejs.org/download/release/latest-v22.x'
6262
$links = (Invoke-WebRequest -uri $releaseURI -UseBasicParsing).Links.href
6363
$pattern = "win-x$osBits.*\.zip"
64-
$fileUri = "$releaseURI/" + ($links | Select-String -Pattern $pattern | Get-Unique).Tostring().Trim()
64+
$fileUri = 'https://nodejs.org' + ($links | Select-String -Pattern $pattern | Get-Unique).Tostring().Trim()
6565
Invoke-WebRequest -Uri $fileUri -OutFile (Join-Path $WorkingFolder '\node.zip')
6666

6767
if ($InstallPortableGit) {

0 commit comments

Comments
 (0)