Skip to content

Unable to run opencode when node/npm is managed by Volta #197

@Traviskn

Description

@Traviskn

I use Volta to manage my node version. I am able to install and run claude code via npm without problems. When I install opencode via npm however it is unable to run:

npm i -g opencode-ai@latest
opencode auth login

Volta error: Could not execute command.

See `volta help install` and `volta help pin` for info about making tools available.

I have tried uninstalling and reinstalling with npm and using volta install rather than npm with the same "could not execute command" error. The volta help commands aren't giving me any hints. I'm not quite sure what's going on since other global npm tools work just fine, but wanted to create this issue in case other Volta users run into it.

For now I am installing via Homebrew and opencode works great! Thanks for building this 😄

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions