Basic Node and Express - Meet the Node console

Tell us what’s happening:

In the very first step of the Basic node and Express course (where you should add a console.log to the existing code) the Simple browser window says: "Not found"from the very beginning (so even before I add my code). Adding code does not work, as becomes evident when the link is pasted in the Solution link.
In the terminal there are no obvious signs of something being wrong: the message “Node is listening on port 3000…” is displayed.

This is the link to my GitPod site:
https://freecodecam-boilerplate-l4yayfxvowa.ws-eu108.gitpod.io/

Your code so far

let express = require(‘express’);

let app = express();

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0

Challenge Information:

Basic Node and Express - Meet the Node console

Update:
if I understood correctly the message “Not found” is not an issue, but as long as no server communication happened this message is going to be there.

I have tried the modified myApp.js (including the console.log(“Hello World”) to run in a bash terminal. With the result that it correctly prints “Hello World” to the terminal/console. So the file is working.

Apparently somehow the GitPod console does not get the console.log message. I have no clue why. But this blocks the test, as it does not find the “Hello World” message in the console.

Who has an idea why this happens and how to solve this?

Finally found the solution:
You have to stop the node server by entering Ctrl + C. Then a bash prompt appears, where you type npm start.

It would be good if this was mentioned in the instructions somewhere.

3 Likes

why it is not working with my code?
same problem “Not found”

thank you so much… i have the same problem and couldn’t find (or understand?) the problem.

it already run,so we will think “ah…just add the console and it will save then automatically updated”

This is is it.
It took me digging about 3 to 4 pages deep into searches to find this.
Thanks for the clear explanation, Joop!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.