Skip to content

fix(install): create ~/.hermes before moving Node.js directory#53

Merged
teknium1 merged 2 commits intoNousResearch:mainfrom
JoshuaMart:fix/install
Feb 26, 2026
Merged

fix(install): create ~/.hermes before moving Node.js directory#53
teknium1 merged 2 commits intoNousResearch:mainfrom
JoshuaMart:fix/install

Conversation

@JoshuaMart
Copy link
Copy Markdown
Contributor

Fix for #50

When Node.js is not installed on the system, install_node() attempts to move the extracted tarball to ~/.hermes/node/. However, ~/.hermes is only created later in main() by copy_config_templates(), causing the following error:

→ Extracting to ~/.hermes/node/...
mv: cannot move '/tmp/tmp.IzTuDRmjih/node-v22.22.0-linux-x64' to '/root/.hermes/node': No such file or directory

Add mkdir -p "$HERMES_HOME" in install_node() before the mv call, so the destination directory always exists regardless of execution order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants