Here are the steps that I have done, the same way I did in Managing Packages with NPM:
- Clone this GitHub repo with
git clone git@github.com:freeCodeCamp/boilerplate-express.git
npm i
npm start
- write
console.log("Hello World")
inmyApp.js
- Open up
http://localhost:3000/
Here’s what the browser looks like:
Although Hello World
does show up in my terminal:
Also when I look around server.js
, here’s what I found (not sure if it’s relevant):
Any this is the package.json
:
{
"name": "fcc-learn-node-with-express",
"version": "0.1.0",
"dependencies": {
"express": "^4.14.0",
"body-parser": "^1.15.2",
"cookie-parser": "^1.4.3",
"fcc-express-bground": "https://github.com/freeCodeCamp/fcc-express-bground-pkg.git"
},
"main": "server.js",
"scripts": {
"start": "node server.js"
}
}
I literally just got started and I’m already stuck. Any clue is appreciated.
*
*
*
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0
Challenge: Basic Node and Express - Meet the Node console
Link to the challenge: