Dashboard App getting started tutorial install broken
Answered
Ocicat posted this in #help-forum
OcicatOP
npx create-next-app@latest nextjs-dashboard --example "https://github.com/vercel/next-learn/tree/main/dashboard/starter-example"
Gives an error suggesting force or legacy options. neither of these work.
I also ran npm install -g pnpm, then tried --force which APPEARED to work, but then failed when attempting to 'npm run dev'
Kindly assist with direction.
Gives an error suggesting force or legacy options. neither of these work.
I also ran npm install -g pnpm, then tried --force which APPEARED to work, but then failed when attempting to 'npm run dev'
Kindly assist with direction.
8 Replies
California Quail
Did you run pnpm i before running npm run dev?
Answer
Philippine Crocodile
try running "pnpm dev"
@California Quail Did you run pnpm i before running npm run dev?
OcicatOP
Thank you! That did the trick. Can you kindly explain or point to an explanation of why that worked? Thanks again!!! 🙂
Rhinelander
Its part of the course and https://nextjs.org/learn/dashboard-app/getting-started. pnpm is just package manager that this project uses. I suggest you to follow the course if you are not yet sure what you are doing
If you want to know what is the diffrence between pnpm and npm you can read that here https://romanglushach.medium.com/comparing-npm-yarn-and-pnpm-package-managers-which-one-is-right-for-your-distributed-project-to-4d7de2f0db8e
@Rhinelander Its part of the course and https://nextjs.org/learn/dashboard-app/getting-started. pnpm is just package manager that this project uses. I suggest you to follow the course if you are not yet sure what you are doing
OcicatOP
Hmm. I did exactly what the course prescribed which is why I requested assistance when it failed. If you read the course, you'll notice it prescribes npx and the precise command I listed above. If one doesn't know what they're doing, following a prescribed tutorial is the should be a functioning course of action - not one that fails requiring support. I hope that makes sense.
Rhinelander
Yeah I tried for myself. They just have broken tutorial 🙂
@Rhinelander Yeah I tried for myself. They just have broken tutorial 🙂
OcicatOP
I should have looked here first, but for those who might see this, this issue is captured here: https://github.com/vercel/next-learn/issues/754