wclr / yalc

Work with yarn/npm packages locally like a boss.
MIT License
5.64k stars 147 forks source link

command not found: yalc #176

Open crjacinro opened 2 years ago

crjacinro commented 2 years ago

I have tried to add yalc using npm and yarn globally.

yarn global add yalc

npm i yalc -g

but the result is this:

command not found: yalc

I have tried restarting the machine and clearing node_modules.

OS: Mac OS 11.6.2 (Intel) Node: v16.13.0

wclr commented 2 years ago

Try on another machine to check if it can work at all. -)

shubhanus commented 2 years ago

Same issue +1

waxidiotic commented 2 years ago

The same thing was happening for me even though yalc was included when I ran yarn global list. Turns out I needed to add export PATH="$(yarn global bin):$PATH" to my .zshrc. I don't remember having to do this before but it worked.

David-Cohen35 commented 2 years ago

I had this issue and it resolved when I uninstalled nvm (node version manager)

thiagoolsilva commented 1 year ago

Thanks @waxidiotic . I've used your solution and it solves my problem.

frylstar commented 1 year ago
sudo yarn global add yalc

It works for me

fuzzy-lee commented 9 months ago

I am using npm, how should I deal with this problem?