-
Notifications
You must be signed in to change notification settings - Fork 332
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
TypeError: log.gauge.isEnabled is not a function #333
Comments
Thanks for reporting! Do you ever get that error when running npm itself? It looks to be coming from npm. |
If you could identify more specifically when this occurs that would be helpful as well! Thanks. |
I had this issue when I installed using: I fixed the issue by uninstalling using: I'm not sure why that might have made a difference, but I'm up and running now. |
That doesn't look to be an issue with ncu but with yarn not using npm's prefix config when installing bins from global cli tools (which is defaulted to /usr/local). On the yarn issue tracker it looks like people use the --prefix option or just install global cli tools with npm. |
@eighty4 I agree it's not a ncu issue. I mostly just posted to make sure that anyone else that landed here knew a workaround :) |
I'm not installing ncu with yarn as global tool (only with |
@johnunclesam Thanks, I'd like to figure out the issue for you. I might need some more information first since I am not able to reproduce it. Do you experience this same problems with other global installs, or is it just ncu? |
I think it is an issue of yarn, please check yarn#3202. |
Closing as it does not appear to be an ncu issue. Feel free to re-open if there is something that we should do. Thanks! |
I'm pretty sure this is not actually Yarn's fault. It's because of the Npm dependency mentioned in #369, which causes an installation of a second local (and probably older) copy of Npm, which then conflicts with the main global one. |
hit this today after doing a yarn add some other packages |
I fixed the issue by commenting out line 57 in /usr/local/lib/node_modules/npm/node_modules/npmlog/log.js |
Just try to run |
Sometimes I receive this (using
ncu
orncu -g
):The text was updated successfully, but these errors were encountered: