It’s very odd! Today after trying to install a react native project it couldn’t find a path for any emulator even though I had one running and then my terminal decided that even node -v was no longer a command it recognised 🤷🏻♀️
I think this is half the problem. Every time I install something the instructions include some sort of add $PATH to zrhrc or bashrc and all the different repos conflict with each other and cause me a headache. Plus that I don’t really know what all the setup commands do, it’s just chaos
It's tricky and the way it works is of a different time. I would recommend commenting out your config and adding things back one at a time to see how they work.
I wrote a little explainer on how to query and interact with $PATH here. Adding a screenshot. Sorry it's not going to be very accessible
Comments
If things disappear when you change directory it's likely you have relative paths in there, which can be both frustrating and a security risk.
If you're using third party package managers to manage versions of tools (fnm, nvm, asdf) that's another layer of complexity
I wrote a little explainer on how to query and interact with $PATH here. Adding a screenshot. Sorry it's not going to be very accessible