Unhandled rejection Error: invalid config key requested

Hello.
After cloning a project I tried to npm install, but I get the following error:

Unhandled rejection Error: invalid config key requested: errorl no local data for ws@5.2.2. Extracting by manifest.
at BadKeyError (C:\Program Files\nodejs\node_modules\npm\node_modules\figgy-pudding\index.js:93:23)
at pudGet (C:\Program Files\nodejs\node_modules\npm\node_modules\figgy-pudding\index.js:101:5)
at FiggyPudding.get (C:\Program Files\nodejs\node_modules\npm\node_modules\figgy-pudding\index.js:27:12)
at Object.get (C:\Program Files\nodejs\node_modules\npm\node_modules\figgy-pudding\index.js:159:16)
at Object.checkData (C:\Program Files\nodejs\node_modules\npm\node_modules\ssri\index.js:232:22)
at write (C:\Program Files\nodejs\node_modules\npm\node_modules\cacache\lib\content\write.js:34:31)
at putData (C:\Program Files\nodejs\node_modules\npm\node_modules\cacache\put.js:29:10)
at Object.x.put (C:\Program Files\nodejs\node_modules\npm\node_modules\cacache\locales\en.js:28:37)
at readFileAsync.then.data (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\fetchers\file.js:38:28)
at tryCatcher (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:693:18)
at Promise._fulfill (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:638:18)
at C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\nodeback.js:42:21

Unhandled rejection Error: invalid config key requested: errorGET 200 https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz 788ms
at BadKeyError (C:\Program Files\nodejs\node_modules\npm\node_modules\figgy-pudding\index.js:93:23)
at pudGet (C:\Program Files\nodejs\node_modules\npm\node_modules\figgy-pudding\index.js:101:5)
at FiggyPudding.get (C:\Program Files\nodejs\node_modules\npm\node_modules\figgy-pudding\index.js:27:12)
at Object.get (C:\Program Files\nodejs\node_modules\npm\node_modules\figgy-pudding\index.js:159:16)
at Object.checkData (C:\Program Files\nodejs\node_modules\npm\node_modules\ssri\index.js:232:22)
at write (C:\Program Files\nodejs\node_modules\npm\node_modules\cacache\lib\content\write.js:34:31)
at putData (C:\Program Files\nodejs\node_modules\npm\node_modules\cacache\put.js:29:10)
at Object.x.put (C:\Program Files\nodejs\node_modules\npm\node_modules\cacache\locales\en.js:28:37)
at readFileAsync.then.data (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\fetchers\file.js:38:28)
at tryCatcher (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:693:18)
at Promise._fulfill (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:638:18)
at C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\nodeback.js:42:21

npm ERR! cb() never called!

I reinstalled node.js, but the error is the same.

I put the log file into the attachments.

Thanks in advance!
2018-12-10T20_46_40_979Z-debug.log (389,1 KB)

See this, I believe:

Does removing package-lock.json work?

1 Like

Awesome, that worked! Thank you!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.