#Local server not running after I install a package / update nextjs
68 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
do you get any error?
No. It just cancels
Doesnt matter which package I install
I'm getting these errors tho when I run it before installing anything. But when I check the lines, there doesn't seem to be a typo there. What does this error mean? They didn't show up a month ago.
can you run ls?
have you tried to delete .next and node_modules?
and what are the version of next and node?
"next": "^13.5.4",
node: v21.5.0
I haven't. Should I try that?
yeah try that
What should I do after?
npm install && npm run dev
Is this concerning
its fine
Still same issue
same as this?
Yea..
ah try create a new project with npx create-next-app@latest and see if it works
A new project in another directory?
yes try it
it starts and stops
stop immediately?
after like 6 seconds
try run this
PORT=5000 npm run dev
npm run dev --port 5000
Doesn't change the port. I changed this line in package.json "dev": "next dev -p 5000",
Still issue persists tho
run npx next info
did you upgrade the version of node?
maybe try installing node 20.10.0 LTS
How do I do that?
From previous versions from the website?
install LTS one
run set-ExecutionPolicy RemoteSigned -Scope CurrentUser
That fixed it. It starts now 
What are these warnings?
do you still getting those warning?
where do you load the nprogress.min.css style?
in _app.js
When route is changing, it shows a progress bar at the top.
Oh
I found where the typo is
create a page/_document.js and put the link tag there
import { Html, Head, Main, NextScript } from 'next/document'
export default function Document() {
return (
<Html>
<Head>
<link rel="stylesheet" href="..." />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
)
}
I think its ok to update if you need
Alright. That has fixed everything I have been encountering.
Should I update my project to nextjs 14?
sure if you can
Which command do i use
npm install next@latest
your welcome
