Skip to content

Dev server not starting: Node v20, v19.7, v18.14.1 #1833

Closed Answered by ykamal
ykamal asked this question in Q&A
Discussion options

You must be logged in to vote

Okay the readme needs to be updated. With the following code, I was able to see what port this was running on:

try {
  const app = new Hono();
  app.get("/", (c) => c.text("Hello Node.js!"));

  serve(app, (info) => {
    console.log({ info });
  });
} catch (error) {
  console.error(error);
}

and the npm command is npm run dev or yarn dev not start

Afterwards, http://localhost:3000 worked

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ykamal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant