-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where does yarn store global packages (lib not bin) #2049
Comments
On linux they are stored in |
The logic determining this is in
|
on Windows is |
Thanks everyone :) |
is this documented on the website, docs or command line help? |
Adding a message to say where the package is installed would be exceedingly useful |
Ask yarn itself to tell you (as config
|
@HaleTom awesome thanks! is that documented somewhere on the website or docs? seems non-obvious and too useful not to call out somewhere else |
@omouse |
the real problem is only |
seems |
can we change this location ? |
Is there a way to get this path dynamically? It seems that yarn v1.5.1+ has changed the path on Windows. |
@gera2ld as explained above you can use @khalid-elabbadi see @bochen2014 you can add the location to |
@HaleTom ,Thanks. |
@toupeira This is the answer I was looking for since I was working with various Docker images that had different configs. |
So to be clear, if you use NVM like the original poster, you should use |
@AlecRust I guess that's the case. That's kind of my question too. |
@farzadso I'm fairly confident after some investigation.
After In both these cases I now simply source NVM before calling binaries such as |
@AlecRust I tested it and can confirm. |
Hello everyone,
I am sorry if this question has been answered already, but I searched through google and github and couldn't find anything relevant. Where does
yarn global add
Installs packages? For instance, I have typescript installed through NPM and the tsserver is located inUsers/kononnik/.nvm/versions/node/v7.2.0/lib/node_modules/typescript/lib
but where is the node_modules packages for global npm packages installed through yarn?The text was updated successfully, but these errors were encountered: