Basic Node and Express - Meet the Node console

Tell us what’s happening:

Hey guys, I choose the second method(Gitpod) to do the test :

I can see myApp.js and I modify it. My code is list below:

let express = require('express');
let app = express();

console.log("Hello World");

 module.exports = app;

I can’t find out why can’t I pass it.

I check almost every post relative to this test and it seems that I only need to add “console.log(“Hello World”);”.

I really need someone to explain what wrong with it, thanks!

###Your project link(s)

solution: https://3000-freecodecam-boilerplate-eqb6vlffdu8.ws-us108.gitpod.io

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36

Challenge Information:

Basic Node and Express - Meet the Node console

Have found out the solution:

step1: Enter ctrl + c in the terminal to stop it.
step2: Enter npm start

3 Likes

Thanks man, you saved me from wasting a whole lot of time. That’s most definitely something that needs to be in the instructions.

This saved me lots of digging, thank you.

Thanks a lot guy. I was wandering what I wasn’t doing right. you saved me.

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