Skip to content

fix(web): use Node.js for sync-assets instead of Unix rm/cp#25090

Closed
ms-alan wants to merge 1 commit into
NousResearch:mainfrom
ms-alan:fix/25073-windows-sync-assets
Closed

fix(web): use Node.js for sync-assets instead of Unix rm/cp#25090
ms-alan wants to merge 1 commit into
NousResearch:mainfrom
ms-alan:fix/25073-windows-sync-assets

Conversation

@ms-alan

@ms-alan ms-alan commented May 13, 2026

Copy link
Copy Markdown
Contributor

Summary

sync-assets used Unix rm which is not available on Windows CMD/PowerShell, causing the web UI build to fail with 'rm is not recognized'.

Replace with a small Node.js script (web/scripts/sync-assets.js) that uses Node.js built-in fs APIs for cross-platform file operations.

Changes

  • web/scripts/sync-assets.js (new): ESM script that replicates the sync-assets logic
  • web/package.json: Updated sync-assets script to call node scripts/sync-assets.js

Closes #25073

sync-assets used Unix rm which is not available on Windows CMD/PowerShell.
Replace with a small Node.js script using built-in fs APIs.

Closes NousResearch#25073
@ms-alan ms-alan requested a review from a team May 13, 2026 16:08
@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have javascript Pull requests that update javascript code labels May 13, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Competing with #13368 which addresses the same Windows sync-assets build failure plus additional fixes (silent errors, Unicode cp1252 crash). See also #25073 and #24827 for the underlying issue reports.

@teknium1

Copy link
Copy Markdown
Contributor

Closing in favor of the broader fix in #25983 (#25983), which addresses the same sync-assets cross-platform bug plus two related Windows issues (silent npm failures and cp1252 console crashes) from @johnisag's earlier PR #13368. Thanks for spotting the bug — your fix was correct on its own, the merged version just covers more ground.

@teknium1 teknium1 closed this May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript Pull requests that update javascript code P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Web UI build fails on Windows: rm is not recognized in sync-assets script

3 participants