nextjs-material-dashboard
nextjs-material-dashboard copied to clipboard
[Bug] Won't start. Dependency issues maybe.
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
- Download repo
- $ npm install
- 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
- delete package-lock.json and /node_modules
- run npm install --save --legacy-peer-deps
- 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
Try
npm install --force
or
npm install --legacy-peer-deps
The force is required because deprecated packages are being brought in. Can we get those updated because ummm. we can't build with those.
Still an issue
is still an issue?
Still an issue for me. I'm using node 18.13.0 and npm 9.2.0
Sill an issue for me to, using node 22