npm/are-we-there-yet

Application failing while npm install

Closed this issue · 0 comments

The First time i installed the npm managed application it worked fine . but next time installed on the machine it shows following Error:
Installing packages...
util.js:160
throw new ('superCtor.prototype',
^
TypeError [ERR_INVALID_ARG_TYPE]: The "superCtor.prototype" property must be of type object. Received undefined
at Object.inherits (util.js:160:11)
at Object. (C:\Program Files\nodejs\node_modules\npm\node_modules\are-we-there-yet\node_modules\readable-stream\lib_stream_duplex.js:53:6)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (C:\Program Files\nodejs\node_modules\npm\node_modules\are-we-there-yet\node_modules\readable-stream\readable.js:16:20)
at Module._compile (internal/modules/cjs/loader.js:1138:30) {
code: 'ERR_INVALID_ARG_TYPE'
}

Following are the dependency installed:
"dependencies": {
"delegates": "^1.0.0",
"readable-stream": "^2.0.6"
},

Tried removing loader.js but issue still persists.
Please Suggest resolution