nodenv icon indicating copy to clipboard operation
nodenv copied to clipboard

Installing global package with yarn will not yield to a shim after rehash

Open lustremedia opened this issue 4 years ago • 1 comments

I have tried to install pm2 via yarn global add pm2 but I somehow cannot get pm2 to show up in bash no matter what I do. nodenv rehash does nothing. I installed the rehash plugin that should run rehash automatically, no success.

Now when I install pm2 via npm install pm2 -g and then run a nodenv rehash I get a shim and it works.

Is this a bug?

lustremedia avatar Apr 13 '22 13:04 lustremedia

ok so I just found https://github.com/nodenv/nodenv/issues/120 after some more digging. The issue has been closed but it looks like this was more of a feature request.

Looks like yarn global is not supported out of the box, or has something changed since then?

lustremedia avatar Apr 13 '22 14:04 lustremedia