-
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
yarn global add bower --prefix /usr/local should add binary or link in /usr/local/bin #1877
Comments
I have the same problem. I can't find the link in the path which print from 'yarn global bin' after i run 'yarn global add pm2'. How can i resolve it? my yarn version is 0.17.2 $ yarn global add pm2
# ...
$ yarn global bin
/root/.nvm/versions/node/v6.5.0/bin
$ yarn config list
yarn config v0.17.2
info yarn config
{ registry: 'https://registry.npm.taobao.org',
'version-tag-prefix': 'v',
'version-git-tag': true,
'version-git-sign': false,
'version-git-message': 'v%s',
'init-version': '1.0.0',
'init-license': 'MIT',
'save-prefix': '^',
'ignore-scripts': false,
'ignore-optional': false,
'strict-ssl': true,
'user-agent': 'yarn/0.17.2 npm/? node/v6.5.0 linux x64' }
info npm config
{}
$ find / -name pm2
/root/.config/yarn/global/node_modules/pm2
/root/.config/yarn/global/node_modules/pm2/bin/pm2
/root/.config/yarn/global/node_modules/pm2/lib/templates/pm2
/root/.config/yarn/global/node_modules/pm2/lib/templates/logrotate.d/pm2
/root/.cache/yarn/npm-pm2-2.1.5-7243ed0f9373c649ee3a217cf88aa8c436250359/bin/pm2
/root/.cache/yarn/npm-pm2-2.1.5-7243ed0f9373c649ee3a217cf88aa8c436250359/lib/templates/pm2
/root/.cache/yarn/npm-pm2-2.1.5-7243ed0f9373c649ee3a217cf88aa8c436250359/lib/templates/logrotate.d/pm2 why the global installed package's folader is not int the path '/root/.nvm/versions/node/v6.5.0/lib/node_modules' ? |
Confirmed on macOS |
same issue! |
Same issue. |
Confirmed on Ubuntu 14.04.5 LTS, node 4.6.2 LTS, yarn v0.17.2 after installing pm2 globally which logs:
No pm2 binary has been linked at |
looks like it fixed on 0.17.3 with additional parameters, closing
|
With yarn v0.17.3 after running linking of binaries into the This causes additional errors which I suppose are related to this directory structure:
Furthermore IMHO installation of global modules via |
When using |
ok, reopened, my original post was a feature request, but this become bug report. |
Please open a new issue reporting the And, try your don't need |
If anyone else having trouble with |
@torifat I'm still not seeing the correct behaviour after e.g.:
UPDATE: arg, was still on 0.17.2 -- sorry! 0.17.3 worked correctly |
@nragaz what is your yarn version? |
For me |
what is your yarn version and OS? @jonnybarnes |
yarn |
Do you want to request a feature or report a bug?
feature
What is the current behavior?
yarn global add bower --prefix /usr/local does nothing in /usr/local/bin folder
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Have binary or link in /usr/local/bin
Please mention your node.js, yarn and operating system version.
7.1.0, 0.17.2, debian/8
PS: close if this is a dup, couldn't find exact one.
The text was updated successfully, but these errors were encountered: