найдено 40 уязвимостей (7 слабых, 31 средняя, ​​1 высокая, 1 критическая) - PullRequest
0 голосов
/ 25 июня 2018

Я получаю следующую ошибку при запуске npm uninstall ... Может кто-нибудь, пожалуйста, помогите решить ... Я сделал почти все, чтобы это исправить ...

npm WARN react-star-rating-component@1.4.1 requires a peer of react@^16.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN The package detect-port is included as both a dev and production dependency.

audited 17423 packages in 20.551s
found 40 vulnerabilities (7 low, 31 moderate, 1 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

И когда я запускаю npm audit это дает мне следующее = ошибка

npm ERR! code ELOCKVERIFY
npm ERR! Errors were found in your package-lock.json, run  npm install  to fix them.
npm ERR!     Invalid: lock file's detect-port@1.2.3 does not satisfy detect-port@1.0.1

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-06-25T12_13_53_712Z-debug.log

1 Ответ

0 голосов
/ 13 января 2019

Попробуйте удалить зависимость обнаружения порта от Dependencies и devDependencies в файле package.json и удалить его из node_modules, добавить файл обнаружения с версией и запустить npm install и исправление аудита npm.это решает мою проблему, но не с этим пакетом.

...