Auth0 Home Blog Docs

SPA AngularJS sample not working

I realized I have a AngularJS + Web API situation and created an SPA Angualar JS type application on Auth0 and got a sample application to download. Followed the instructions and get the below error. Any idea what’s going on?

C:\Src\SPAApp1>npm start

centralized-login@0.0.0 start C:\Src\SPAApp1
node server.js

events.js:167
throw er; // Unhandled ‘error’ event
^

Error: listen EACCES 0.0.0.0:3000
at Server.setupListenHandle [as _listen2] (net.js:1319:19)
at listenInCluster (net.js:1384:12)
at doListen (net.js:1510:7)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
at startup (internal/bootstrap/node.js:266:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)
Emitted ‘error’ event at:
at emitErrorNT (net.js:1363:8)
at process._tickCallback (internal/process/next_tick.js:63:19)
[… lines matching original stack trace …]
at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! centralized-login@0.0.0 start: node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the centralized-login@0.0.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! C:\Users\nsraja\AppData\Roaming\npm-cache_logs\2019-04-05T04_53_18_678Z-debug.log

C:\Src\SPAApp1>

Realized I had another project using the same port. :frowning: After stopping it and running “npm start” I see the below output, looks like it is running, but I was expecting to see an Angular UI with a login button. What am I missing? Sorry I am not a UI person.

C:\Src\SPAApp1>npm start

centralized-login@0.0.0 start C:\Src\SPAApp1
node server.js

Server running at http://0.0.0.0:3000/

Hey there!

Sorry for such huge delay in response! We’re doing our best in providing you with best developer support experience out there, but sometimes our bandwidth is not enough comparing to the number of incoming questions.

Wanted to reach out to know if you still require further assistance?