twuni / asdf-yarn

asdf plugin for Yarn.
MIT License
137 stars 25 forks source link

Global installation not working #29

Open datsfilipe opened 2 years ago

datsfilipe commented 2 years ago

Tried installing vercel globally, but it didn't work as expected. The terminal output:

~ yarn global add vercel
yarn global v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "vercel@28.2.2" with binaries:
      - vc
      - vercel
Done in 23.68s.
~ asdf reshim
~ vercel
fish: Unknown command: vercel

I'm using fish as shell, wezterm as the terminal emulator and Archlinux as OS.

doubledup commented 1 year ago

Seeing the same issue using fish shell and the Kitty emulator on MacOS. fwiw the installed commands are placed in ~/.yarn/bin/, so adding that directory to $PATH is a workaround for now:

echo 'set -x PATH $PATH $HOME/.yarn/bin/' >> ~/.config/fish/config.fish