Skip to content

Commit d360a60

Browse files
committed
fix: update to Node 20
1 parent 73ebd9c commit d360a60

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

scripts/brew-install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
1010
export HOMEBREW_NO_AUTO_UPDATE=1
1111
export HOMEBREW_NO_ANALYTICS=1
1212

13-
brew install node@18
14-
brew link --overwrite node@18
13+
brew reinstall node@20
14+
brew link --overwrite node@20

scripts/choco-install.ps1

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
$ErrorActionPreference = "Stop"
2+
13
function Save-ChocoPackage {
24
param (
35
$PackageName
@@ -21,10 +23,10 @@ if ( $null -eq $env:ChocolateyInstall ) {
2123
New-Item -Path "${PSScriptRoot}\..\tmp\chocolatey" -ItemType "directory" -ErrorAction:SilentlyContinue
2224
choco source add --name="cache" --source="${PSScriptRoot}\..\tmp\chocolatey" --priority=1
2325

24-
# Install nodejs v18.15.0 (will use cache if exists)
25-
$nodejs = "nodejs.install"
26-
choco install "$nodejs" --version="18.15.0" --require-checksums -y
26+
# Install nodejs v20.5.1 (will use cache if exists)
27+
$nodejs = "nodejs"
28+
choco install "$nodejs" --version="20.5.1" --require-checksums -y
2729
# Internalise nodejs to cache if doesn't exist
28-
if ( -not (Test-Path -Path "${PSScriptRoot}\..\tmp\chocolatey\$nodejs\$nodejs.18.15.0.nupkg" -PathType Leaf) ) {
30+
if ( -not (Test-Path -Path "${PSScriptRoot}\..\tmp\chocolatey\$nodejs\$nodejs.20.5.1.nupkg" -PathType Leaf) ) {
2931
Save-ChocoPackage -PackageName $nodejs
3032
}

0 commit comments

Comments
 (0)