nextjs-material-dashboard icon indicating copy to clipboard operation
nextjs-material-dashboard copied to clipboard

[Bug] Won't start. Dependency issues maybe.

Open jonvaljonathan opened this issue 3 years ago • 6 comments

Version

1.1.0

Reproduction link

https://www.creative-tim.com

Operating System

macOS Big Sur

Device

Macbook Pro

Browser & Version

firefox 90.0.2

Steps to reproduce

npm -v 7.20.5 node -v 16.4.0

  1. Download repo
  2. $ npm install
  3. npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/react npm ERR! react@"17.0.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^15.3.0 || ^16.0.0" from [email protected] npm ERR! node_modules/react-swipeable-views npm ERR! react-swipeable-views@"0.13.9" from the root project

// also happens with react-chartist

  1. delete package-lock.json and /node_modules
  2. run npm install --save --legacy-peer-deps
  3. still breaks

Sometimes the install passes, sometimes it hangs.

Haven't been able to get npm run dev to work.

What is expected?

Run npm install and npm run dev.

What is actually happening?

npm install fails


Solution

Additional comments

jonvaljonathan avatar Aug 09 '21 12:08 jonvaljonathan

Try

npm install --force

or

npm install --legacy-peer-deps

siddiquiaffan avatar Sep 06 '21 07:09 siddiquiaffan

The force is required because deprecated packages are being brought in. Can we get those updated because ummm. we can't build with those.

tylerlazenby avatar Jan 11 '22 17:01 tylerlazenby

Still an issue

steven-t-h avatar Nov 23 '22 10:11 steven-t-h

is still an issue?

magnokf avatar Dec 23 '22 18:12 magnokf

Still an issue for me. I'm using node 18.13.0 and npm 9.2.0

Gabriel-Guzman avatar Jan 06 '23 21:01 Gabriel-Guzman

Sill an issue for me to, using node 22

devHeli0 avatar May 30 '24 12:05 devHeli0