hermes - ๐Ÿ’ก(How to fix) Fix [Bug]: Windows Install Isn't Working

Official PRs (โ€ฆ)
ON THIS PAGE

Recommended Tools

ร—6

Utilities matched from this issueโ€™s tags and category โ€” try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful ยท Quick feedback

Loadingโ€ฆ

Error Message

iex : At line:18 char:23

  • [string]$Branch = "main",
  •                   ~~~~~~

The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept assignments, such as a variable or a property. At line:19 char:27

  • [string]$HermesHome = "$env:LOCALAPPDATA\hermes",
  •                       ~~~~~~~~~~~~~~~~~~~~~~~~~~

The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept assignments, such as a variable or a property. At line:1 char:92

  • ... rcontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex
  •                                                                   ~~~
    • CategoryInfo : ParserError: (:) [Invoke-Expression], ParseException
    • FullyQualifiedErrorId : InvalidLeftHandSide,Microsoft.PowerShell.Commands.InvokeExpressionCommand

Root Cause

Root Cause Analysis (optional)

Code Example

Invoke-Expression: The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept
assignments, such as a variable or a property.

---

iex : At line:18 char:23
+     [string]$Branch = "main",
+                       ~~~~~~
The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept
assignments, such as a variable or a property.
At line:19 char:27
+     [string]$HermesHome = "$env:LOCALAPPDATA\hermes",
+                           ~~~~~~~~~~~~~~~~~~~~~~~~~~
The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept
assignments, such as a variable or a property.
At line:1 char:92
+ ... rcontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex
+                                                                       ~~~
    + CategoryInfo          : ParserError: (:) [Invoke-Expression], ParseException
    + FullyQualifiedErrorId : InvalidLeftHandSide,Microsoft.PowerShell.Commands.InvokeExpressionCommand

---

Invoke-Expression: The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept
assignments, such as a variable or a property.

---

bash: irm: command not found
bash: iex: command not found

---

Invoke-Expression: The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept
assignments, such as a variable or a property.

---

iex : At line:18 char:23
+     [string]$Branch = "main",
+                       ~~~~~~
The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept
assignments, such as a variable or a property.
At line:19 char:27
+     [string]$HermesHome = "$env:LOCALAPPDATA\hermes",
+                           ~~~~~~~~~~~~~~~~~~~~~~~~~~
The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept
assignments, such as a variable or a property.
At line:1 char:92
+ ... rcontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex
+                                                                       ~~~
    + CategoryInfo          : ParserError: (:) [Invoke-Expression], ParseException
    + FullyQualifiedErrorId : InvalidLeftHandSide,Microsoft.PowerShell.Commands.InvokeExpressionCommand

---

Invoke-Expression: The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept
assignments, such as a variable or a property.

---

bash: irm: command not found
bash: iex: command not found

---

It's not a Debug issue with the agent running.

---
RAW_BUFFERClick to expand / collapse

Bug Description

PowerShell 7.6.1

Invoke-Expression: The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept
assignments, such as a variable or a property.

Windows Powershell (x86)

iex : At line:18 char:23
+     [string]$Branch = "main",
+                       ~~~~~~
The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept
assignments, such as a variable or a property.
At line:19 char:27
+     [string]$HermesHome = "$env:LOCALAPPDATA\hermes",
+                           ~~~~~~~~~~~~~~~~~~~~~~~~~~
The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept
assignments, such as a variable or a property.
At line:1 char:92
+ ... rcontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex
+                                                                       ~~~
    + CategoryInfo          : ParserError: (:) [Invoke-Expression], ParseException
    + FullyQualifiedErrorId : InvalidLeftHandSide,Microsoft.PowerShell.Commands.InvokeExpressionCommand

PowerShell 7.7.0-preview.1

Invoke-Expression: The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept
assignments, such as a variable or a property.

Git

bash: irm: command not found
bash: iex: command not found

Steps to Reproduce

Run

$ irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex

Expected Behavior

Pulled from GitHub and Installed everything?

Actual Behavior

These are the errors I get. It doesn't work in anything.

$ irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex

PowerShell 7.6.1

Invoke-Expression: The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept
assignments, such as a variable or a property.

Windows Powershell (x86)

iex : At line:18 char:23
+     [string]$Branch = "main",
+                       ~~~~~~
The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept
assignments, such as a variable or a property.
At line:19 char:27
+     [string]$HermesHome = "$env:LOCALAPPDATA\hermes",
+                           ~~~~~~~~~~~~~~~~~~~~~~~~~~
The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept
assignments, such as a variable or a property.
At line:1 char:92
+ ... rcontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex
+                                                                       ~~~
    + CategoryInfo          : ParserError: (:) [Invoke-Expression], ParseException
    + FullyQualifiedErrorId : InvalidLeftHandSide,Microsoft.PowerShell.Commands.InvokeExpressionCommand

PowerShell 7.7.0-preview.1

Invoke-Expression: The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept
assignments, such as a variable or a property.

Git

bash: irm: command not found
bash: iex: command not found

Affected Component

Tools (terminal, file ops, web, code execution, etc.)

Messaging Platform (if gateway-related)

No response

Debug Report

It's not a Debug issue with the agent running.

Operating System

Windows 11

Python Version

3.13.12

Hermes Version

No response

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

?

Proposed Fix (optional)

?

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Vote matrix ยท Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loadingโ€ฆ

Still need to ship something?

ร—6

Another batch ranked right after the header list โ€” different links, same matching logic.

Back to top recommendations

TRENDING

hermes - ๐Ÿ’ก(How to fix) Fix [Bug]: Windows Install Isn't Working