Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

204
Views
Node/Express: $ symbol not recognising the input PORT 8080

How can I get my PORT running on 8080? Do I need to install a dependency?

const app = require('express')();
const PORT = 8080;

app.listen(
    PORT,
    () => console.log('its alive on http://localhost:${PORT}')
)

Terminal: API % node . its alive on http://localhost: ${PORT}

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Since you are using template literals you need to write it as

const PORT = 8080;

app.listen(
    PORT,
    () => console.log(`its alive on http://localhost:${PORT}`)
)

keyboard

See https://stackoverflow.com/a/52612901/13163131 and https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals for more info

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!