Задать вопрос
@Scorpiored88

Почему не устанавливаются модули node js?

Всем доброго! Пытаюсь установить модули внутри docker контейнера, раньше все работало хорошо, сейчас же при попытке установить/удалить любой модуль получаю ошибку:

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 npm@6.14.13
3 info using node@v14.17.1
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 homebridge-broadlink-rm@latest fetched in 2704ms
10 timing stage:loadCurrentTree Completed in 3183ms
11 silly install loadIdealTree
12 silly install cloneCurrentTreeToIdealTree
13 timing stage:loadIdealTree:cloneCurrentTree Completed in 3ms
14 silly install loadShrinkwrap
15 timing stage: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)
18 verbose stack at Object.tryCatcher (/usr/local/lib/node_modules/npm/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 ]


Уже пытался убрать папку node_modules и package.json все равно ничего не помогает, уже не знаю куда копать
  • Вопрос задан
  • 1341 просмотр
Подписаться 1 Сложный Комментировать
Пригласить эксперта
Ответы на вопрос 1
w3bsmes
@w3bsmes
Куратор тега «Глупые вопросы»
Попробуй удалить package-lock.json и package.json, а затем npm init --f
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы