Skip to content
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

Cannot use package globally via yarn global add #1779

Closed
Elliot-Evans-95 opened this issue Nov 10, 2016 · 1 comment
Closed

Cannot use package globally via yarn global add #1779

Elliot-Evans-95 opened this issue Nov 10, 2016 · 1 comment

Comments

@Elliot-Evans-95
Copy link

Do you want to request a feature or report a bug?
bug

What is the current behavior?
Trying to globally install grunt. If I use yarn global add command, it will be allow me to use 'grunt' as a cli name. If I install grunt globally via npm, I can use grunt as a cli name
If the current behavior is a bug, please provide the steps to reproduce.

  1. install a npm package globally (yarn global add grunt)
  2. package successfully installs.
  3. restarted terminal for changes.
  4. type grunt in to terminal.
  5. errors: zsh: command not found: grunt
    note: I have added export PATH="$PATH:$HOME/.yarn/bin" to my .zshrc file, still cannot find 'grunt'
    What is the expected behavior?
    grunt can be used on the command line.
    Please mention your node.js, yarn and operating system version.
    Mac OS X El capitain
    Installed via homebrew
    iterm2 with zsh
@wyze
Copy link
Member

wyze commented Nov 10, 2016

Duplicate #1321.

@wyze wyze closed this as completed Nov 10, 2016
@wyze wyze added the duplicate label Nov 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants