internal/modules/cjs/loader.js:605 throw err; ^ Error: Cannot find module 'aproba'


(Dmtitan) #1

What I Wanted to Do

got ERROR 605 - Error: Cannot find module ‘aproba’

Reproduction Steps

<any command starts with NPM endup with same error.
I reinstalled NoteJS and NPM with same results.

Details

Platform Info

$ npm --versions
<!-- paste output here -->
$ node -p process.platform
<!-- paste output here -->

DMSONY@DMSONY-VAIO MINGW64 /c/projects/storybooks (master)
$ node -v
v11.7.0

DMSONY@DMSONY-VAIO MINGW64 /c/projects/storybooks (master)
$ npm -v
internal/modules/cjs/loader.js:605
    throw err;
    ^

Error: Cannot find module 'aproba'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
    at Function.Module._load (internal/modules/cjs/loader.js:529:25)
    at Module.require (internal/modules/cjs/loader.js:657:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (C:\Users\DMSONY\AppData\Roaming\npm\node_modules\npm\node_modules\gauge\render-template.js:3:16)
    at Module._compile (internal/modules/cjs/loader.js:721:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
    at Function.Module._load (internal/modules/cjs/loader.js:552:3)

(Kat Marchán) #2

Your npm installation itself is hosed. You’ll need to reinstall.


(Dmtitan) #3

Yes, I reinstall, following instructions and it worked. Problem was resolved.