Next.js Discord

Discord Forum

Unable to run the app

Answered
Muhammed Khal posted this in #help-forum
Open in Discord
I just formatted my ssd and trying to run my nextjs app , obviously I have installed node, but getting the below error, I'm not sure why it is, can anyone help me??
Answered by Ray
could you install node with 64-bit
View full answer

76 Replies

@Northeast Congo Lion
Northeast Congo Lion
@Muhammed Khal run node -v
Show me log
In terminal
Before it's used to run without any errors, but my laptop is lagging a lot, so I formatted it and installed win 11
after that i have installed the things like
node, git and github desktop and vscode then I clonned my repo
Northeast Congo Lion
Next turbo may be only for 14
Can you update to next 14 and try it
Before the next is used to work on 13 and even my collegues are still using turbo
Northeast Congo Lion
Hm
Nevermind turbo is 13 included
Uhm
@Muhammed Khal next step. Remove node modules folder
And run npm ci
To confirm correct modules are downloaded
Never had this error before
npm ci?
Northeast Congo Lion
yes
Okay doing it
@Northeast Congo Lion that's my other project, after installing it, it's just terminatted itself
It's already existing project
I'm trying to run my old project that was done on yesterday
you said this is a new device? create-next-app@latest will install swc for you
Yes
so try creating a new project with npx create-next-app@latest
Sure
@Ray
@Muhammed Khal Click to see attachment
yeah go to that link
and there is a link for Microsoft Visual C++ Redistributable
install it
It's giving this
scroll down
Which one should I install?
2022
Is that's the one?
yea
2015-2022?
yes
Restarting the laptop
Kinda taking some time I’ll let you know
ok
@Ray I have installed and restarted my laptop
But still same error
Like failed to load SWC binary
@Muhammed Khal Like failed to load SWC binary
try again with npx create-next-app@latest
Yes doing
Same buddy
@Muhammed Khal Click to see attachment
this error?
Yes you're right
@Muhammed Khal Yes you're right
run node -p "process.arch"
@Ray
could you install node with 64-bit
Answer
Okay
Thatv one right
Do I have to select any specific
@Muhammed Khal Thatv one right
lts 64bit is fine
Oka
Do I have to setup the path @Ray ?
I think it's already setup my default whenn I install node
Thanks a lot @Ray , it's workiing
Kinda not understand why my other project still at ideal?
@Ray any ideas>
@Muhammed Khal <@743561772069421169> any ideas>
run npm i --force on your old project
Okay
Thanks a lot @Ray