-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[BUG] Update notice has black background even on white terminals #3091
Comments
The background for the update notifier is being set here: cli/lib/utils/update-notifier.js Line 112 in a4e7f4e
And per chalk/chalk#102 it appears there's no way to detect background color in the terminal. |
I think the point is to not use |
Does this extend to all cases of |
It appears that in most cases it's trying to highlight a line. I think the correct solution for that is to use the |
Chalk supports However, npmlog handles the highlighting differently, so the |
this is now half fixed as of
|
This was fixed by 9216d59 and included in |
Self-explanatory 👇
My terminal theme has a white background (macOS default) but npm unnecessarily shows the update notice with a black color.
Environment:
I don't know if this has already been addressed since it will only appear when I'm not running the latest version.
The text was updated successfully, but these errors were encountered: