Comments (4)
OS Windows 7
In my case, after installing version of Nodejs 8.12.0, I had the same error.
log.gauge.isEnabled is not a function
I could get rid of it in two steps:
- delete the ../nodejs directory from my installation.
- launch again the windows installer node-v8.12.0-x64.msi, during the workflow installation, I clicked on the button "Repair".
It solved the issue.
from npmlog.
Same error; on Ubuntu 18.04
ali@neptune:~$ uname -a
Linux neptune 4.15.0-33-generic #36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
ali@neptune:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
ali@neptune:~$ node -v
v10.10.0
ali@neptune:~$ which node
/usr/local/bin/node
ali@neptune:~$ dpkg -l nodejs
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===============-============-============-====================================
ii nodejs 8.10.0~dfsg- amd64 evented I/O for V8 javascript
ali@neptune:~$ npm -v
/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:57
log.progressEnabled = log.gauge.isEnabled()
^
TypeError: log.gauge.isEnabled is not a function
at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:
57:33)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:22:13
at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:153:3)
ali@neptune:~$ sudo vi /usr/local/lib/node_modules/npm/node_modules/npmlog/log.js
[sudo] password for ali:
// commented out line 57
ali@neptune:~$ npm -v
6.4.1
Hope there are some clues there.
ali@neptune:/usr/local/lib/node_modules/npm/node_modules/gauge$ grep 'version\|sha' package.json
"_integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",
"_shasum": "2c03405c7538c39d7eb37b317022e325fb018bf7",
"version": "2.7.4"
ali@neptune:/usr/local/lib/node_modules/npm/node_modules/npmlog$ grep gauge package.json
"gauge": "~2.7.3",
ali@neptune:/usr/local/lib/node_modules/npm/node_modules/npmlog$ grep 'version' package.json
"type": "version",
"version": "4.1.2"
Hacking code; console.log(guage.isEnabled) == undefined
at line 57.
Setting 57: log.progressEnabled = false;
has the following effect on npm use;
$ npm i request --save
// brief progress bar flash
npm ERR! asyncWrite is not a function
npm ERR! pna.nextTick is not a function
Complete purge and delete of ALL nodejs npm and node_modules and reinstall via apt fixed issue
from npmlog.
Thanks you so much Serge
OS Windows 7
In my case, after installing version of Nodejs 8.12.0, I had the same error.
log.gauge.isEnabled is not a function
I could get rid of it in two steps:
- delete the ../nodejs directory from my installation.
- launch again the windows installer node-v8.12.0-x64.msi, during the workflow installation, I clicked on the button "Repair".
It solved the issue.
Thank you so much SergeMathieu. It helped me a lot .
I have searched many links but never succeed.
from npmlog.
You're welcome syedaliuzair.
It took me also a little bit of time to find this solution so, to help other people is a great pleasure ;)
from npmlog.
Related Issues (20)
- [ISSUE] how to use npmlog in a script? HOT 2
- Reporting a vulnerability HOT 1
- How can I set up to display a complete error log?
- Setting string stack of some Errors causes `cannot set property stack`...
- Get the level numeric value? HOT 1
- Reentrancy, multiple instances? HOT 2
- npmlog error: log.gauge.isEnabled is not a function
- Latest version has broken node-gyp HOT 3
- Add Typescript definition 💜 HOT 2
- Why resolve stack traces to plain string? HOT 2
- Example for gauge/tracker usage HOT 1
- delete
- Install react-sripts and start react app on linux HOT 1
- [FEATURE] Disable log colors if environment variable is set HOT 3
- [BUG] v5.0.0 - Error: Cannot find module 'object-assign' HOT 2
- [BUG] Address CVE-2021-3807 HOT 3
- Resolve a moderate vulnerability in ansi-regex by updating to gauge ^4 HOT 4
- [BUG] Changelog not updated for v6 HOT 2
- Hide level, prefix in production HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npmlog.