简体   繁体   中英

How to solve the warnings that occurs while using the command "yarn install" in react js

I'm working on a react js app. There I build a basic application without using create-react-app command. So when I'm using "yarn install" command I'm getting these warning messages. I tried to solve the same but unable to do so.

This is the warnings which I'm getting:-

yarn install v1.22.19 info No lockfile found. [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... warning " > @babel/eslint-parser@7.19.1" has unmet peer dependency "eslint@^7.5.0 || ^8.0.0". warning " > eslint-config-prettier@8.5.0" has unmet peer dependency "eslint@>=7.0.0". warning " > eslint-plugin-import@2.26.0" has unmet peer dependency "eslint@^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8". warning " > eslint-plugin-jsx-a11y@6.6.1" has unmet peer dependency "eslint@^3 || ^4 || ^5 || ^6 || ^7 || ^8". warning " > eslint-plugin-react@7.31.11" has unmet peer dependency "eslint@^3 || ^4 || ^5 || ^6 || ^7 || ^8". [4/4] Building fresh packages... success Saved lockfile. Done in 164.19s. Image with warnings

I am trying to remove all the warning messages.

They are harmless and can be ignored for most of the cases but if they still cause you trouble and you want to resolve them then just install it by:

yarn add eslint

as for the lockfile warning it will be resolved after you install and package

Try:

yarn add

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM