How to complete these challenges locally

Tell us what’s happening:
Describe your issue in detail here.
I’ve already completed this challenge in Replit (although my pc is so slow, the 10th try was the good one cause the others were timing out). And now I want to try to complete it in a local enviroment…

I installed python, clone the repo and used

python -m http.server

to run a local server.

The link I use is http://localhost:8000/
also tried with http://localhost:8000/package.json

localy I can see the files but I’m failing the test and don’t know why.

What am I doing wrong here… It doesn’t seem to be a timeout fail.

Here’s the package.json

{
   "name": "fcc-learn-npm-package-json",
   "dependencies": {
   	"express": "^4.14.0"
   },
   "main": "server.js",
   "scripts": {
   	"start": "node server.js"
   },
   "repository": {
   	"type": "git",
   	"url": "https://idontknow/todo.git"
   },
   "author": "Tezcatlipoca",
}


Your project link(s)

solution: http://localhost:8000

Your browser information:

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

Challenge: How to Use package.json, the Core of Any Node.js Project or npm Package

Link to the challenge:

You need NodeJS, not python

:yum: Hehe Sound about right.
I’ll try that out now.
Thanks for your help :grin:

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