Require is undefined in javascript
MikeJMS8910

I am trying to set up express and I downloaded node.js, npm, and all of the things that I would need for it. But when I do const express = require('express') I get the error request is undefined. I have been searching the internet for the past 3 hours but nothing works and I keep getting the same error. How can I fix this?

You are viewing a single comment. View All
Coder100

so like hit win + r, type in cmd.exe, press enter and then cd to your project folder and do node . @MikeJMS8910