im trying to learn next with the official doc
Answered
Dutch posted this in #help-forum
DutchOP
but im gettiing errors on the install part
28 Replies
also, need more info. what error?
DutchOP
let see share the screen
DutchOP
i ran the 'pnpm i @vercel/postgres'
sorry for the delay
this comes with an error message in the terminal. what is it?
DutchOP
i did it like its say on website
and then the error came
and then the error came
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 againif you are interested in those better fixes: https://github.com/vercel/next.js/discussions/55987
DutchOP
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
DutchOP
yes
ok so now if you delete node_modules and run pnpm install again, what happens?
DutchOP
same thing
DutchOP
sorry, i dont know then. i just cloned your repo and literally only ran
pnpm install
and pnpm dev
and it is workingif 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
DutchOP
this worked i moved it into main drive
Answer
DutchOP
and its run smooth
its was on my desktop before
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
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