Install-Product node 20 failure

olivier.spinelli's Avatar


20 Oct, 2023 05:58 AM


7z : The term '7z' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the 
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Program Files\AppVeyor\HostAgent\PsModules\avvm\avvm.psm1:95 char:13
+             7z x $zipPath -y -o"$path" | Out-Null
+             ~~
Full log:

Then node cannot be started:

An error occurred trying to start process 'node' with working directory 'C:/CKli-World/Observable-Domain/CK-Observable-Domain/Clients/ck-gen'. The system cannot find the file specified.

The whole appveyor.yml is rather basic:

build_cloud: DESKTOP-5BQ4M95
  - ps: Install-Product node 20
version: build{build}
image: Visual Studio 2022
clone_folder: C:\CKli-World\Observable-Domain\CK-Observable-Domain
- ps: Get-ChildItem -Recurse .log | % { Push-AppveyorArtifact $_.FullName }
- dotnet run --project CodeCakeBuilder -nointeraction
test: false

*Update 1: Oups! Should I install 7Zip on the DESKTOP-5BQ4M95 machine? I'll try but I was believing that all the required appveyor dependencies were packed in the agent....

Update 2: No luck. 7Zip installed, no change :(

  1. 1 Posted by Benjamin Crosni... on 20 Oct, 2023 06:32 AM

    Benjamin Crosnier's Avatar

    You are not running on an AppVeyor-distributed build image. AppVeyor uses 7z in its scripts, but expects 7z.exe to be in PATH.
    The default worker image adds it via

    (Note: Add-Path is custom, and defined in

    Add %ProgramFiles%\7-Zip to your PATH.

  2. 2 Posted by olivier.spinell... on 20 Oct, 2023 06:43 AM

    olivier.spinelli's Avatar

    Ok... I'm definitly a noob (hpefully, in this area!).
    I naîvely thought that the "Windows" had the magic to use the appveyor's build image.
    (May be for noob like me, the docs could insist on this...) Thank you!
    Closing this discussion.

  3. olivier.spinelli closed this discussion on 20 Oct, 2023 06:44 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac


06 Jun, 2024 02:12 PM
06 Jun, 2024 03:49 AM
04 Jun, 2024 03:53 AM
30 May, 2024 04:03 PM
27 May, 2024 02:06 AM
20 May, 2024 09:52 PM