Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I see all the warning raised by yarn during project installation again? Is there a command for that?

Tags:

yarnpkg

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?

like image 336
Akhila Avatar asked Dec 30 '25 22:12

Akhila


2 Answers

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

yarn install --check-files
like image 148
Ayan Avatar answered Jan 05 '26 22:01

Ayan


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.

like image 38
Troy Weber Avatar answered Jan 05 '26 22:01

Troy Weber



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!