Next.js Discord

Discord Forum

Next.JS won't Run on LocalHost 3000

Unanswered
German yellowjacket posted this in #help-forum
Open in Discord
German yellowjacketOP
Now, The LocalHost refusing to connect, I have ran it many times and still won't work do you need ss or more info?

92 Replies

German yellowjacketOP
i Did it on 2 diff browsers
if you could tell me how to run would be great!
i did npm run dev
Thai
have you tried reinstalling packages?
German yellowjacketOP
No
and i sadly dont think that will work
@German yellowjacket No
Try it at least,
also could you provide more information about the specific issue you are facing
you can use npm install to re-install your packages
or just delete the node_modules folder and run the same command
To create a new project:
npm create next-app@latest
npm install
npm run dev
German yellowjacketOP
âš  Attempted to load @next/swc-win32-ia32-msvc, but an error occurred: A dynamic link library (DLL) initialization routine failed.
\?\C:\Users\Elissas computer\flexcord\node_modules@next\swc-win32-ia32-msvc\next-swc.win32-ia32-msvc.node
⨯ Failed to load SWC binary for win32/ia32, see more info here: https://nextjs.org/docs/messages/failed-loading-swc
says tht
"When on an M1 Mac and switching from a Node.js version without M1 support to one with, e.g. v14 to v16, you may need a different swc dependency which can require re-installing node_modules (npm i --force or yarn install --force)." - https://nextjs.org/docs/messages/failed-loading-swc
German yellowjacketOP
thanks
even when i do it
it still says it every time
idk how to fix
jit not working
is this a brand new project or is this something youve been working on for some time
German yellowjacketOP
brand new
are you on windows?
German yellowjacketOP
yes
powershell
and this is what youve done?
German yellowjacketOP
now its saying it unknown
@SharpieMaster Click to see attachment
is this what you did exactly?
German yellowjacketOP
i will try
if not work will say
its not recognized
as a cmd
npm?
Siberian Rubythroat
Don't use spaces
@Siberian Rubythroat Don't use spaces
im pretty sure that doesnt matter
German yellowjacketOP
i will try
unless its a path they set manualy
@German yellowjacket its not recognized
You can use this:
https://nodejs.org/en

Or use a tool like nvm
@German yellowjacket i will try
Siberian Rubythroat
Also try to build 2-3 project clones using Code with Antonio Channel
It may help you because there he show everythig from scratch
Also you may need to:
1. delete .next folder
2. reinstall node js

how to reinstall node js you may find on internet guides on YouTube
German yellowjacketOP
thats what i have been using lmao
antonio
@German yellowjacket thats what i have been using lmao
Siberian Rubythroat
Are you free to call rn?
German yellowjacketOP
and i used npx create-next-app@latest
and no
i cant
@German yellowjacket and i used `npx create-next-app@latest`
Siberian Rubythroat
Try this in your terminal
sudo apt-get install npm
npm i yarn -g
npm i pnpm -g
sudo npm install n -g
sudo n 20.0.0
German yellowjacketOP
should i try to change the host area?
@SharpieMaster bro is using windows
Siberian Rubythroat
ok - anyway he can find some guide on YouTube
@German yellowjacket should i try to change the host area?
Siberian Rubythroat
I don't understand this question
German yellowjacketOP
it still aint work
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\Elissas computer\Downloads\XoCord\package.json
npm ERR! errno -4058
npm ERR! enoent Could not read package.json: Error: ENOENT: no such file or directory, open 'C:\Users\Elissas computer\Downloads\XoCord\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
@German yellowjacket, please provide ALL relevant information when explaining the problem (in this case, all the commands run)
German yellowjacketOP
npm run dev
after doing the npx cmd and it downloading
after running thhe make react app
have you created the next-app?
German yellowjacketOP
yh
German yellowjacketOP
ok gang
@German yellowjacket after running thhe make react app
Siberian Rubythroat
You use windows I guess
dont do that
Siberian Rubythroat
You need to install MAC or debain based OS
German yellowjacketOP
can't?
please
German yellowjacketOP
can i use Kali Linux to do it?
@German yellowjacket can i use Kali Linux to do it?
Siberian Rubythroat
sure
You may find guides how to reinstall your OS to kali linux
on kali linux you can use terminal to do that
German yellowjacketOP
u cant use windows
crazy sigh
you can
you dont have to use linux
1. make sure you have npm on ur computer
2. find a directory to make your project in
German yellowjacketOP
it just not working.
3. copy the path and run cd + your path
German yellowjacketOP
like tht?
yes
gj
then type npm create next-app@latest
German yellowjacketOP
it says it aint known
gang, so you dont have npm
German yellowjacketOP
ys
Siberian Rubythroat
just check guide on youtube how to install npm and node js
on windows 11
German yellowjacketOP
i have it
im leaving the server not worth it
bro is wild