-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
npm is suggested when installed via yarn (global install only) #118
Comments
Yarn users should IMHO know what to do when they see |
Is there any harm in adding a check for it? Just checking if the path to the package contains yarn should be enough to determine if it's installed via yarn. |
@OmgImAlexis That's a good idea. I'm sure a PR is welcomed to fix that. |
const updateNotifier = require('update-notifier');
const pkg = require('chalk/package');
const notifier = updateNotifier({pkg});
notifier.notify(); How to determine whether |
I will make a pull request to solve the issue. |
I have xo installed via yarn not npm which means if I "update" with npm I'll end up with two copies of xo in my
$PATH
.The text was updated successfully, but these errors were encountered: