Home > Enterprise >  Error when attempting to install npm package in a Next.JS project
Error when attempting to install npm package in a Next.JS project

Time:10-13

Just as the title says. I am tying to install an npm package and am running into an error. The specific package is called enter image description here

CodePudding user response:

react-mic depends on React version 16, but you have installed React version 18.

The first way

You can try to run the below command

npm install --legacy-peer-deps

Or

npm install --force

The second way

You can downgrade your React version to 16

npm uninstall react
npm install [email protected]
  • Related