We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df30d74 commit 5ce452eCopy full SHA for 5ce452e
scripts/choco-install.ps1
@@ -1,3 +1,5 @@
1
+$ErrorActionPreference = "Stop"
2
+
3
function Save-ChocoPackage {
4
param (
5
$PackageName
@@ -22,7 +24,7 @@ New-Item -Path "${PSScriptRoot}\..\tmp\chocolatey" -ItemType "directory" -ErrorA
22
24
choco source add --name="cache" --source="${PSScriptRoot}\..\tmp\chocolatey" --priority=1
23
25
26
# Install nodejs v20.5.1 (will use cache if exists)
-$nodejs = "nodejs.install"
27
+$nodejs = "nodejs"
28
choco install "$nodejs" --version="20.5.1" --require-checksums -y
29
# Internalise nodejs to cache if doesn't exist
30
if ( -not (Test-Path -Path "${PSScriptRoot}\..\tmp\chocolatey\$nodejs\$nodejs.20.5.1.nupkg" -PathType Leaf) ) {
0 commit comments