-
Notifications
You must be signed in to change notification settings - Fork 54
TypeError: log.gauge.isEnabled is not a function #48
Comments
What is it? I have the same problem with npm-check-updates... |
I've been running into this constantly since switching from npm to yarn. I've needed to blow out the |
We've been running with this issue with Codeship builds randomly, any ideas? |
I have run into this when using |
You can also try this simple example, yarn#3202. |
It's a npm package dependency issue. Some package depends on It could more complicated. Because Currently I have no idea how to fix it. A hard way could be: go through all the libraries, update their dependencies. We might need to send PRs to several projects which depends on |
Not sure if it'll help others, but this workaround worked the few times where I work. The workaround we do is to do a "rm -rf" (or delete the folder in Windows) of the node_modules for the project being built, and try again. The build should download all necessary dependencies to node_modules and build successfully. Your mileage may vary. |
@thlavacek FYI: just deleting |
Not sure if it's relevant. I reported this issue when I am using So I created my own package yarn-upgrade-all to replace Not a direct solution to this problem though. |
I confirm the problem is still present. I removed npm-check-updates from my package.json at all. |
Removing My best guess is that since most of us probably added I bet creating a fresh project and package.json with TLDR; Remove your |
I reinstall node, then reinstall package fix this issue. |
What is real solution? I don't want to reinstall package each time, should just work. It only happens for me if I do I just do |
This is still an issue. npm --prefix .\node_modules\npm\node_modules\npmlog install fixes it temporarily, but some interplay between npm install and yarn makes it come back (not that it's right that we're using both!). And that fix takes minutes. Anyone know what the cause is? |
For me, running the following commands solves the issue:
|
FWIW, the equivalent is Deleting |
Delete |
I've been running into this issue after performing some legacy development which involved downgrading to node v6.9.0 (npm v3.10.8) via "n" which was installed through brew. I couldn't run any npm commands and was throwing the above error, regardless of which project directory I was in. Even upgrading back to 10.4.0 (again, via n) didn't resolve the issue. To resolve, I had to install node v9.4.0 (npm v5.6.0) then switch back to 10.4.0 and remove the unrequired node versions. Haven't had an issue since. Not sure if that will help your issues, but thought i'd post my solution. |
[Win 8.1, GitBash, nvm, npm 6.11.2] Deleting the node_modules folder and uninstalling the npm/reinstalling via nvm solved the problem for me. |
yarn causes issues with npmlog see npm/npmlog#48
In so far as I can tell this is a yarn bug? npmlog declares its dependencies correctly and it is the responsibility of the package manager to ensure that those are available in a place where node's require will find it. |
I just experienced this on Windows 10, upgrading from an older version of node (v6 something) to v8.12.0. After upgrading, I tried to I deleted:
Then re-installed |
I solved this problem just now. |
I also experienced this problem. I ended up having to uninstall nodejs, manually ensuring all files were removed from the machine and reinstall. to be safe, I rebooted prior to reinstall. But the important note, because I had tried it a few times, is that ALL node files must be removed so that it's a clean install. Hope that helps someone. I burned too much time on that. :( |
Just remove C:\Users[UserName]\AppData\Roaming\npm-cache |
I just ran into this on Ubuntu 16.04 with node v10.13.0. Using
It seems to work now. |
After switching Node.js versions using n, npm may not work properly. For me, running the following commands solves the issue: |
So I just installed nodejs (10.5.3 LTS) on a windows machine and out of the box I get the error; C:\Users\Bob>npm -v TypeError: log.gauge.isEnabled is not a function I have read through the above comments and can't for the life of me see the best solution to fix this issue. I suspect it has something to do with the version of gauge after reading what is above. I don't show a \npm-cache folder in \roaming to delete |
Here the same... installed 11.11.0 (Windows x64), ran Cannot use npm at all :( |
So, I got it to work. I have not tried 10.15.3 with the install all dependencies selected yet. |
Same exact issue as quoted above. Went from v10 to v6 and back, via n. Tried to use create-react-app, ended up here. n prune command didn't work because I was using an older version of n. In turn, I manually removed all versions not in use. New error when trying to use npm: Cannot read property 'resolve' of undefined Looks like some promise wires got crossed somewhere. Decided to wipe my global node_modules folder clean and reinstall node through the official installer. Had originally installed via brew a few years back. Not sure if this was the best solution, but it worked and I'm over it. Reinstalled a few global packages and all is good. |
This method does work for me. |
|
My solution is to:
|
This does not appear to be a problem in the latest npmlog or npm cli. If this is happening in npmlog |
thx, it's worked for me |
I have this problem but I don't use yarn... Reinstalling node doesn't help. edit: uninstalling nodejs and then deleting the folder /usr/lib/node_modules fixed it. |
How to reproduce
Clone https://github.com/chentsulin/electron-react-boilerplate
Run the last command twice to reproduce the issue.
Update
The problem is still present.
I created my own package yarn-upgrade-all to replace
npm-check-updates
.The text was updated successfully, but these errors were encountered: