Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const exphbs = require('express-handlebars')
- const bodyparser = require('body-parser')
- const path = require('path')
- const app = express();
- app.get('/', (req, res) => {
- app.send('index')
- })
- const PORT = process.env.PORT || 5000;
- app.listen(PORT, `server started on PORT ${PORT}`)```
- test
- /*the error I keep getting is below. I'm feeling like an idiot as I'm unable to even get a basic app to render. I know this question has been asked many times and I'm sorry to post this question again. Any guidance that will yield a solution would be greatly appreciated. */
- events.js:183
- throw er; // Unhandled 'error' event
- ^
- Error: getaddrinfo ENOTFOUND server started on PORT 5000
- at errnoException (dns.js:50:10)
- at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement