Next.js Discord

Discord Forum

im trying to learn next with the official doc

Answered
Dutch posted this in #help-forum
Open in Discord
Avatar
DutchOP
but im gettiing errors on the install part
Answered by Dutch
this worked i moved it into main drive
View full answer

28 Replies

Avatar
also, need more info. what error?
Avatar
DutchOP
let see share the screen
Avatar
DutchOP
Image
i ran the 'pnpm i @vercel/postgres'
sorry for the delay
Avatar
this comes with an error message in the terminal. what is it?
Avatar
DutchOP
Image
Image
i did it like its say on website
and then the error came
Image
Avatar
hmm there are better fixes but they are probably too advanced for you so for now just remove the --turbo part from the dev script in your package.json and try again
if you are interested in those better fixes: https://github.com/vercel/next.js/discussions/55987
Avatar
DutchOP
Image
Avatar
lol an invariant error this time. seems like the installation of the project is corrupted, somehow. could you upload your current code to a github repository and send me the link
Avatar
DutchOP
yes
Avatar
ok so now if you delete node_modules and run pnpm install again, what happens?
Avatar
DutchOP
same thing
Avatar
DutchOP
Image
Avatar
sorry, i dont know then. i just cloned your repo and literally only ran pnpm install and pnpm dev and it is working
Image
if you are running the project in an external drive or something like that, try running it in the main drive?
other than that i genuinely have no idea, the code looks fine to me
Avatar
DutchOP
this worked i moved it into main drive
Answer
Avatar
DutchOP
and its run smooth
its was on my desktop before
Avatar
oh, nice! glad you got it working
yeah issues like this are so infuriating, they are rare and they are very very hard to debug
Avatar
DutchOP
i thing its coming from the project isnt able to get the right route to the files its need from the prev installations
and that what made it crash