devspace
devspace copied to clipboard
Unable to find global npm/yarn dir
What happened?
Unable to use any CLI commands at all.
I just get the following error:
Finishing installation of DevSpace CLI
Unable to find global npm/yarn dir
What did you expect to happen instead?
For it to work, or at least provide a debuggable error message.
How can we reproduce the bug? (as minimally and precisely as possible)
Install Node.js & Yarn using https://volta.sh/
Install the DevSpace CLI
Run any CLI command.
My devspace.yaml:
version: v2beta1
...
Local Environment:
- DevSpace Version: N/A
- Operating System: mac
- ARCH of the OS: AMD64 | ARM64 | i386 Kubernetes Cluster:
- Cloud Provider: other
- Kubernetes Version: v1.25.0
Anything else we need to know?
/kind bug
Hi @marcus-sa
Thanks for reporting the issue.
I have taken below steps and it seems its working.
- curl https://get.volta.sh | bash
- volta install node
- volta install yarn
- volta install devspace
- devspace version
❯ devspace version
Finishing installation of DevSpace CLI
Running: node /home/mahendra/.volta/tools/image/packages/devspace/bin/../lib/node_modules/devspace//index.js finish-install /home/mahendra/.volta/tools/image/packages/devspace/bin
################################################
WARNING: npm binary directory NOT in $PATH environment variable: /home/mahendra/.volta/tools/image/packages/devspace/bin
################################################
Download DevSpace CLI release: https://github.com/loft-sh/devspace/releases/download/v6.1.1/devspace-linux-amd64
DevSpace version : 6.1.1
Did you take these steps or something very specific? By the way, I am on linux.