I downloaded the files from github and installed the packages with npm install. I start the server with npm start and it shows listening on port 3000. I submit the code withhttp://localhost:3000 and it shows
// running tests
//"Hello World" should be in the console
// tests completed
// console output
[Error]
This [Error] persists if i add the solution to myApp.js
let express = require('express');
let app = express();
console.log("Hello World");
module.exports = app;
I haven’t touched any other files.
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15
This is what I see on the freeCodeCamp lesson area, which blocks me from going to the next lesson. In my terminal within VScode I see the “Hello World” output from my console.log. In a browser I just see “not found” in the top left
Its kind of hard to get any thing from the link to index.js with what you have posted. Run npm fix, try to reinstall the dependences using npm i. Also if you have a path after the url make sure to use it as well. The vs console is not the best for an api infact it needs extentions like IntelliSense.
I am not sure what you mean by linking to js index. But I have re-installed everything and tried running the file as is without touching anything again.
I have also tried to use npm audit fix which changed one file but did not help it run without errors.
I would assume that since the assignment is to log "Hello World" in the console, there shouldn’t be any errors in the code I downloaded. I’m assuming the gitHub code doesn’t work and I’ll have to trouble shoot the lesson code before I can try to submit any revisions for this specific lesson.