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

CLI does not work when installing with Yarn #97

Closed
arxpoetica opened this issue Apr 18, 2017 · 1 comment
Closed

CLI does not work when installing with Yarn #97

arxpoetica opened this issue Apr 18, 2017 · 1 comment

Comments

@arxpoetica
Copy link

v0.6.2

Expected result

Run from the command line:

yarn global add livereload

...which gives me the following install output:

yarn global v0.23.2
warning No license field
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
success Installed "[email protected]" with binaries:
      - livereload
warning No license field
✨  Done in 2.88s.

(everything looks like it SHOULD be good, but...)

Actual result

The binary does not appear to be registered to the command line. I keep getting the following:

livereload .
zsh: command not found: livereload

Why is this important?

I would like to use Yarn, not npm, though I'm defaulting to npm for now. It took me quite some time to realize that this was a problem related to your installer not having love for Yarn.

@napcs
Copy link
Owner

napcs commented Apr 19, 2017

Hi. Thanks for the detailed error report.

yarn is supposed to maintain compatibility with npm. There's no installer for livereload other than the standard package.json file definition and structure.

I'm inclined to think this is a path issue on your setup. The yarn docs suggest you can specify a prefix:

 yarn global add livereload --prefix /usr/local

yarnpkg/yarn#630 seems to spend a lot of time talking about issues like this. So does yarnpkg/yarn#648

Best of luck.

@napcs napcs closed this as completed Apr 19, 2017
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