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

380
Views
Error in app.js file that I can't crack

I'm getting an unexpected token error when I try to run the following app.js code via node. It says the problem is on or around line 15. Am I missing a bracket or something? It's probably something simple, but I just don't see it.

enter image description here

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You should be able to identify them when you look at it, you have extra closing paranthesis in line no 8 and 15 });,

also remove declaring the module twice, its not needed.

remove line number 14.

Corrected code,

var express = require('express');
var app = express();
var angular = require("angular");
angular.module('NoteWrangler', ['ngRoute', 'ngResource']);
app.use(express.static('AWS-Portfolio'));
app.listen(5000, function () {
    console.log('Listening on port 3000');
});
over 4 years ago · Santiago Trujillo 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!