To Start a working server express

Tell us what’s happening:

When I run the npm, then i face the error in console :
npm ERR! errno 1
npm ERR! fcc-learn-node-with-express@0.1.0 start: node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fcc-learn-node-with-express@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2022-01-09T09_20_08_346Z-debug.log
exit status 1

Your code so far
//In myApp.js
var express = require(‘express’);
var app = express();

Console.log(“Hello World”);

browser information:
Version 97.0.4692.71 (Official Build) (64-bit)

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

Challenge: Meet the Node console

Link to the challenge:


I have had the same issue.
My experience was as follows: Completed the chapter before, then stopping the script from running, and then importing the new challenge into Replit.
This caused npm thinking it’s all set up, because it was ran on the previous challenge over the same tab.

I resolved this by closing the Replit tab I had opened, and then reopened on a fresh tab with a fresh clone.
Then, after running the script, npm started normally and the script ran with no issues.

Hope that helps.

Good luck,

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