mirrord: Using asdf as a version manager fails to find a version of NodeJS/NPM
Bug Description
When using asdf as my version manager for a bunch of languages, I cannot mirror any apps into a local k8s cluster.
I get the same message as if I had forgotten to set a local or global version for node
. I’m sure this is somehow related to running in a different context than if I were running locally… I’m just confused. Running the same command without mirrord exec
does work.
Steps to Reproduce
mirrord exec npm run dev --target pod/vs-deployment-<hash>
Backtrace
⠇ mirrord cli starting
✓ ready to launch process
✓ layer extracted
✓ agent pod created
✓ pod is ready
No version is set for command npm
Consider adding one of the following versions in your config file at /home/jim/Sites/ww-guest-site/.tool-versions```
Relevant Logs
No response
Your operating system and version
Linux kernel 6.0.9
Local process
npm run dev
(which runs astro dev
)
Local process version
node v18.8.0
Additional Info
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 22 (12 by maintainers)
Commits related to this issue
- Added /tmp/ to be excluded from file ops by default. (#804) Closes #800 Co-authored-by: Aviram Hassan <aviramyhassan@gmail.com> — committed to metalbear-co/mirrord by aviramha 2 years ago
I’ll give it a shot today. Thanks again for all your work on this!
Congrats! You opened issue #800 😃 I’m looking into it and will update you ASAP.