Preparing Installer for State Tool Package Manager. . .x Failed

374 Views Asked by At

This is the second part of the question I asked before, related to activestate cli installation on windows 8.1. I have ps V4.0 installed on my machine. When I run the command suitable for ps V4.0, provided by @mklement0 as an answer to my question, I got another error. Screenshots are attached as it is a lengthy error message. screenshot 1 screenshot 2 screenshot 3 screenshot 4 screenshot 5

any idea what is the problem causing this ? Thanx in advance

2

There are 2 best solutions below

1
mklement0 On BEST ANSWER

The bulk of the error message is simply the source code of the script (block) that caused the error.

The last screenshot reveals the cause of the error: The Expand-Archive cmdlet that the script depends on cannot be found.

This is to be expected in PowerShell v4, because this cmdlet was introduced in v5.

Therefore, the solution is to upgrade your PowerShell installation to v5.1

2
mdrakos On

Checking the product page here: https://www.activestate.com/products/platform/state-tool/ it states to run in a command prompt, not powershell. Have you tried running the installation command from cmd? It also may not work on Windows 8.1 as it only supports Windows 10.