Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find module 'caniuse-lite/dist/unpacker/agents' when running create react app

I am trying to create a new react application. I have node version 14.15.3 and npm version 6.14

Error: Cannot find module 'caniuse-lite/dist/unpacker/agents'

when running npx create-react-app

issue screenshot

like image 925
Charan Brijesh Avatar asked Dec 31 '20 10:12

Charan Brijesh


2 Answers

I ran into this issue while working on a Vue project and I fixed it by installing the caniuse-lite package again.

Just run npm i caniuse-lite in your terminal.

Then spin up your app again after the installation.

like image 121
Willower Avatar answered Nov 15 '22 19:11

Willower


I had a similar problem earlier. I installed a previous version of caniuse-lite npm i [email protected] worked for Next-js app.

like image 2
user19366975 Avatar answered Nov 15 '22 20:11

user19366975