ungit: ungit throws error at startup and quits

I haven’t been able to run ungit since the last update. I get the following error:

internal/modules/cjs/loader.js:596

throw err;
^

Error: Cannot find module 'editions'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
    at Function.Module._load (internal/modules/cjs/loader.js:520:25)
    at Module.require (internal/modules/cjs/loader.js:650:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (C:\Users\<username>\AppData\Roaming\npm\node_modules\ungit\node_modules\getmac\index.js:4:18)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)

The module editions is installed globally, and so is ungit.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 25 (2 by maintainers)

Most upvoted comments

I’ll see what they say. Regardless, I’ll push up a workaround (using underscores instead of colons) tomorrow. Sorry for the stuff up everyone.

getmac 1.4.6 is incoming which will resolve this issue

if you experience it again, clear your npm cache and try again