themefisher / bookworm-light-nextjs

Bookworm is a minimal NextJs, Tailwind CSS blog starter template.
https://bookworm-light-nextjs.vercel.app/
MIT License
188 stars 75 forks source link

lib/jsonGenerator.js #12

Closed Alirazahaider closed 1 year ago

Alirazahaider commented 1 year ago

When I run your provided commands it says this. I have installed latest node

Error:

PS C:\Users\Mega Computers\Downloads\Compressed\bookworm-light-nextjs-main_2\bookworm-light-nextjs-main> npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: bookworm-light-nextjs@2.0.0 npm ERR! Found: react@18.2.0 npm ERR! node_modules/react npm ERR! react@"18.2.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@">=16.x <=17.x" from next-mdx-remote@3.0.8 npm ERR! node_modules/next-mdx-remote npm ERR! next-mdx-remote@"^3.0.8" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! npm ERR! For a full report see: npm ERR! C:\Users\Mega Computers\AppData\Local\npm-cache_logs\2023-06-02T18_54_28_538Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Mega Computers\AppData\Local\npm-cache_logs\2023-06-02T18_54_28_538Z-debug-0.log PS C:\Users\Mega Computers\Downloads\Compressed\bookworm-light-nextjs-main_2\bookworm-light-nextjs-main> npm run dev

bookworm-light-nextjs@2.0.0 dev node lib/jsonGenerator.js && next dev

node:internal/modules/cjs/loader:1078 throw err; ^

Error: Cannot find module 'gray-matter' Require stack:

tfsomrat commented 1 year ago

Did you run npm install before npm run dev ?

tr2cky commented 1 year ago

try npm install --force