12

I got a lot of unmet peer dependency errors during a project installation using yarn. And I didn't take a screenshot of those or anything. How do I see all those warning again? Is there a command for that?

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
Akhila
  • 489
  • 6
  • 18

2 Answers2

12

The following command works while using yarn as the package manager:

yarn install --check-files
Ayan
  • 8,192
  • 4
  • 46
  • 51
4

This sort of worked for me: yarn --ignore-scripts --audit.

I think it showed a few less warnings than when I ran a fresh install, but it is at least showing some of the previous warnings for me. I threw --ignore-scripts in there because in Nx/Angular repos, you might have a lengthy ngcc command set up in your package.json. --audit's main purpose is to actually show you how many vulnerabilities you have in your dependencies, but as a side-effect, it appears to be running whatever code shows the warnings. If there is a better solution, I'd also like to know.

Troy Weber
  • 897
  • 8
  • 8