I have recently installed rbenv for some ruby projects but now cannot run my reactjs server for a different project.
The error message from running yarn start
is rbenv: yarn: command not found
According to this link the error may have something to do with the shims. So I ran the below code in the terminal:
for ver in $(rbenv whence yarn); do
RBENV_VERSION="$ver" gem uninstall -ax yarn
rm -f "$(rbenv prefix "$ver")/bin/yarn"
done
rbenv rehash
# now check the yarn executable again:
which -a yarn
when running which -a yarn
I get:
/home/user/.rbenv/shims/yarn
/home/user/.rbenv/shims/yarn
/home/user/.nvm/versions/node/v14.8.0/bin/yarn
/home/user/.rbenv/shims/yarn
/home/user/.rbenv/shims/yarn
/usr/bin/yarn
/bin/yarn
Clearly I'm missing something here