npm исправление аудита --force - PullRequest
0 голосов
/ 19 марта 2020

Я хотел избавиться от своих уязвимостей и использовал

npm audit fix --force

Но я отменил его через несколько строк, потому что он сказал: «Я надеюсь, что вы знаете, что делаете»

Теперь, если я попытаюсь

npm install

я получу

$ npm install
npm WARN @angular-devkit/build-angular@0.900.7 requires a peer of typescript@>=3.6 < 3.8 but none is installed. You must install peer dependencies yourself.
npm WARN @ngtools/webpack@9.0.7 requires a peer of typescript@>=3.6 < 3.8 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/compiler-cli@9.0.7 requires a peer of typescript@>=3.6 <3.8 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/platform-browser-dynamic@8.1.3 requires a peer of @angular/compiler@8.1.3 but none is installed. You must install peer dependencies yourself.
npm WARN @ngtools/webpack@9.0.7 requires a peer of typescript@>=3.6 < 3.8 but none is installed. You must install peer dependencies yourself.
npm WARN ts-jest@24.0.2 requires a peer of jest@>=24 <25 but none is installed. You must install peer dependencies yourself.

audited 1219421 packages in 12.454s

39 packages are looking for funding
  run `npm fund` for details

found 23 vulnerabilities (21 low, 2 moderate)
  run `npm audit fix` to fix them, or `npm audit` for details

Если я установлю @ angular / compiler@8.1.3, мне понадобится @ angular / compiler@9.0.7 и наоборот

1 Ответ

0 голосов
/ 25 марта 2020

У меня была та же проблема, которую я решил, выполнив команду «ng update», эта команда предоставит вам пакеты, которые необходимо обновить, и команды для его обновления. Надеюсь, это поможет вам.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...