1

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

mklement0
  • 382,024
  • 64
  • 607
  • 775
Jims-Rc
  • 91
  • 2
  • 9

2 Answers2

1

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

mklement0
  • 382,024
  • 64
  • 607
  • 775
  • 1
    I tried to update the answer. But editing time was over. Luckily, I copied whole comment. It works like a charm.... When I downloaded file from the link and run it, a popup message showed up saying i had to install an update which I downloaded interactively. That's it. after restarting, I installed state tool package manager via powershell successfully. You are a life saver. How to mark this query as solved ? But i still get an error when I tried to install activeperl from activestate. This calls for another question. – Jims-Rc Nov 15 '21 at 19:49
0

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.

  • You are correct. I saw somewhere stated as it was supported. I can run state command from cmd though I get a message saying it wasn't tested for below windows 10. My bad :-) – Jims-Rc Nov 15 '21 at 21:34
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Nov 16 '21 at 03:19