How to resolve yarn warnings

4.6k Views Asked by At

I created a new project with the vue cli. This project is a Vue3 with Ant Design, Vue Router and Eslint. However when I give the yarn command it shows me the following warnings.

yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "@vue/eslint-config-airbnb > [email protected]" has unmet peer dependency "webpack@>=1.11.0".
warning " > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
[4/4] Building fresh packages...
Done in 26.91s.

The webpack I noticed is already installed directly on vue 3. How do I resolve these warnings?

1

There are 1 best solutions below

1
On

for fsevents it seems that it's a MacOS-only library so that might explain why you got the first error.

for peer dependencies and webpack if you are using Yarn it seems that you have to do yarn add webpack --peer or as @kaumadie said in a comment you can also add it directly on the package.json file of your project

With npm, you can do npm i directly in the project's folder and it should resolve all peer dependencies automatically

Hope it helped you, and have a good day !