Skip to content

Fix for issue with Windows dashboard setup not detecting npm #219

Merged
scottpersinger merged 3 commits intosupercog-ai:mainfrom
twang849:main
Jun 10, 2025
Merged

Fix for issue with Windows dashboard setup not detecting npm #219
scottpersinger merged 3 commits intosupercog-ai:mainfrom
twang849:main

Conversation

@twang849
Copy link
Contributor

@twang849 twang849 commented Jun 10, 2025

Issue

Issue with npm not being detected on Windows when attempted to setup the Supercog dashboard, even when they are properly installed and PATH is configured. Returns error "npm or node not detected".

Change

in src/agentic/dashboard/setup.py, imported os library, then changed the subprocess command of "npm" to "npm.cmd" if the os.name is "nt" (windows) instead of "posix" (unix/linux/mac)

The reason this bug exists is because on Windows, command-line executables installed via npm (like npm, npx, etc.) are typically provided as .cmd files (e.g., npm.cmd) in the system PATH:

Windows does not natively recognize scripts without an extension as executable.
The .cmd extension tells the Windows shell to run the file as a command script.
On Unix-like systems (Linux/macOS), the executable is just npm (no extension).

See #206

@scottpersinger scottpersinger merged commit 0fb3f68 into supercog-ai:main Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants