Home > Blockchain >  NPM error when installing dependency on React
NPM error when installing dependency on React

Time:05-30

i cant install some dependencies . this is a screenshot of what they usually tell meenter image description here

CodePudding user response:

that's because of version of dependencies, better way is to install campatable versions but if you really want to install them you can use --force in command. sth like this :

npm i --force package_name

CodePudding user response:

I think you are going to install material ui core library separately, but it comes with material ui itself, so either you have to remove material ui core from dependency or use --force with npm command.

CodePudding user response:

Just run the installation command with the –force command and your error will be solved like this :

npm install <your package> –force

if it did not work try :

npm install <your package> --legacy-peer-deps
  • Related