Git Product home page Git Product logo

Comments (4)

SergeMathieu avatar SergeMathieu commented on August 25, 2024 10

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:

  1. delete the ../nodejs directory from my installation.
  2. 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.

aliwatters avatar aliwatters commented on August 25, 2024

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.

syedaliuzair avatar syedaliuzair commented on August 25, 2024

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:

  1. delete the ../nodejs directory from my installation.
  2. 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.

SergeMathieu avatar SergeMathieu commented on August 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.