Hi ElevenLabs Team,
I’m encountering an issue with @elevenlabs/cli on a Windows (PowerShell) environment when attempting to add components.
Issue
The CLI consistently fails with the following error:
Error: npx is not available. Please install Node.js/npm.
Environment
- OS: Windows (PowerShell)
- Node.js: v20.19.6
- npm: v11.11.0
- Node managed via nvm for Windows
What I’ve Tried
I attempted multiple invocation methods:
npx @elevenlabs/cli@latest components add bar-visualizer
npm exec -- @elevenlabs/cli components add bar-visualizer
C:...\npx.cmd @elevenlabs/cli components add bar-visualizer
All of the above result in the same error.
Verification
node, npm, and npx are all installed and working as expected
npx is resolvable in the shell (Get-Command confirms this)
- The error occurs consistently regardless of how the CLI is invoked
Observation
Given that npx is available and functional in the environment, it appears the CLI may be performing an internal check that does not correctly resolve npx on Windows (potentially related to how .ps1/.cmd scripts are handled or how child processes are spawned).
Expected Behavior
The CLI should detect npx correctly and proceed with component scaffolding.
Please let me know if additional logs or details would be helpful.
Kind Regards,
Hi ElevenLabs Team,
I’m encountering an issue with
@elevenlabs/clion a Windows (PowerShell) environment when attempting to add components.Issue
The CLI consistently fails with the following error:
Error: npx is not available. Please install Node.js/npm.
Environment
What I’ve Tried
I attempted multiple invocation methods:
npx @elevenlabs/cli@latest components add bar-visualizer
npm exec -- @elevenlabs/cli components add bar-visualizer
C:...\npx.cmd @elevenlabs/cli components add bar-visualizer
All of the above result in the same error.
Verification
node,npm, andnpxare all installed and working as expectednpxis resolvable in the shell (Get-Commandconfirms this)Observation
Given that
npxis available and functional in the environment, it appears the CLI may be performing an internal check that does not correctly resolvenpxon Windows (potentially related to how.ps1/.cmdscripts are handled or how child processes are spawned).Expected Behavior
The CLI should detect
npxcorrectly and proceed with component scaffolding.Please let me know if additional logs or details would be helpful.
Kind Regards,