Answer the question
In order to leave comments, you need to log in
Why are node js modules not being installed?
All the best! I'm trying to install modules inside a docker container, everything worked fine before, but now when I try to install/remove any module I get an error:
npm ERR! Object for dependency "ajv" is empty.
npm ERR! Something went wrong. Regenerate the package-lock.json with "npm install".
npm ERR! If using a shrinkwrap, regenerate with "npm shrinkwrap".
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-07-23T17_44_53_139Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'i',
1 verbose cli 'homebridge-broadlink-rm'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 4794d86096a30869
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 304 https:/ /registry.npmjs.org/homebridge-broadlink-rm 1888ms (from cache)
8 http fetch GET 200 https://registry.npmjs.org/homebridge-broadlink-rm... 570ms
9 silly pacote tag manifest for [email protected] fetched in 2704ms 10 timing stage :
loadCurrentTree Completed in 3183ms 11 silly install
loadIdealTree
12 silly install cloneCurrentTreeToIdealTree rollbackFailedOptional Completed in 27ms 16 timing stage:runTopLevelLifecycles Completed in 5349ms 17 silly saveTree homebridge 18 verbose stack Error: Object for dependency "ajv" is empty. 18 verbose stack Something went wrong. Regenerate the package-lock.json with "npm install". 18 verbose stack If using a shrinkwrap, regenerate with "npm shrinkwrap".
18 verbose stack at /usr/local/lib/node_modules/npm/lib/install/inflate-shrinkwrap.js:60:29
18 verbose stack at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js /release/util.js:16:23)
18 verbose stack at Object.gotValue (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/reduce.js:155:18)
18 verbose stack at Object.gotAccum (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/reduce.js:144:25
) node_modules/bluebird/js/release/util.js:16:23)
18 verbose stack at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:517:31 )
18 verbose stack at Promise._settlePromise (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:574:18)
18 verbose stack at Promise._settlePromise0 (/usr/local/lib/ node_modules/npm/node_modules/bluebird/js/release/promise.js:619:10)
18 verbose stack at Promise._settlePromises (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js :699:18)
18 verbose stack at _drainQueueStep (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:138:12)
18 verbose stack at _drainQueue (/usr/local/lib /node_modules/npm/node_modules/bluebird/js/release/async.js:131:9)
18 verbose stack at Async._drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async. js:147:5)
18 verbose stack at Immediate.Async.drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14)
18 verbose stack at processImmediate (internal/timers.js:464 :21)
19 verbose cwd /homebridge
20 verbose Linux 4.19.75-v7+
21 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "homebridge-broadlink-rm"
22 verbose node v14.17.1
23 verbose npm v6.14.13
24 error Object for dependency "ajv" is empty.
24 error Something went wrong. Regenerate the package-lock.json with "npm install".
24 error If using a shrinkwrap, regenerate with "npm shrinkwrap".
25 verbose exit [ 1, true ]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question