I want to use Yarn to install my global packages so I can use command line tools like mern-cli
. When I install using yarn global add <package>
, it puts my packages in %LOCALAPPDATA%/Yarn/config/global
, but doesn't appear to leave binaries in any easily linkable location.
Am I supposed to link each globally installed package into my path manually? This seems like doing it the hard way... Or is there something else I'm missing?
What I'm doing:
yarn global add mern-cli
Things I've tried:
yarn global bin
-- returnsC:\Program Files\nodejs
on my machine. However, upon checking this folder, I couldn't find any installed modules there. There is only anode_modules
folder with a single thing installed:npm
- Using the
--prefix <npm global pacakge location>
-- doesn't appear to do anything. Then again, this option is poorly documented. Perhaps I'm using it wrong? ~/.yarn
-- is empty
via deathgaze
No comments:
Post a Comment