I am new to asdf. I installed asdf on via brew and enabled the asdf plugin in oh-my-zsh. Then I installed nodejs by asdf plugin add node
and asdf install node
, my .asdf current
returns this
$ asdf current
nodejs 21.6.1 /Users/gefei/.tool-versions
But when I then do node
, I just got an error:
$ node
zsh: command not found: node
What's going wrong?
EDIT: asdf reshim
does not help, but asdf exec node
works.
PS: I am sorry for the title, but I just could not find a good title which meets the quality standards of SE. For any advice I would be grateful
asdf
? And does runningasdf exec node
work? – Erbeasdf exec node
works, butasdf reshim
does not help – Antimonous.zshrc
? After you make changes to.zshrc
you either need to resource the config or open a new shell to have the config applied. – Erbeplugins=(git asdf virtualenv node)
. I did not change my.zshrc
manually cause I think theasdf
plugin ofoh-my-zsh
must suffice. Doesn't it? – Antimonous