msirrele / ng-loopback-starter

Starting code base to build MEAN web applications using ng and Loopback
MIT License
11 stars 3 forks source link

Getting raiseUrlNotFoundError when i go to http://localhost:3000/ #1

Open jrandria opened 6 years ago

jrandria commented 6 years ago

when i go to http://localhost:3000/ or http://localhost/explorer .I get the raiseUrlNotFoudError:

Web server listening at: http://localhost:3000 Browse your REST API at http://localhost:3000/explorer unhandled error { Error: Cannot GET / at raiseUrlNotFoundError (D:\BITBUCKET\LOOPBACK\ng-loopback-starter\node_modules\loopback\server\middleware\url-not-found.js:21:17) at Layer.handle [as handle_request] (D:\BITBUCKET\LOOPBACK\ng-loopback-starter\node_modules\express\lib\router\layer.js:95:5) at trim_prefix (D:\BITBUCKET\LOOPBACK\ng-loopback-starter\node_modules\express\lib\router\index.js:317:13) at D:\BITBUCKET\LOOPBACK\ng-loopback-starter\node_modules\express\lib\router\index.js:284:7 at Function.process_params (D:\BITBUCKET\LOOPBACK\ng-loopback-starter\node_modules\express\lib\router\index.js:335:12) at next (D:\BITBUCKET\LOOPBACK\ng-loopback-starter\node_modules\express\lib\router\index.js:275:10) at SendStream.error (D:\BITBUCKET\LOOPBACK\ng-loopback-starter\node_modules\serve-static\index.js:121:7) at emitOne (events.js:116:13) at SendStream.emit (events.js:211:7) at SendStream.error (D:\BITBUCKET\LOOPBACK\ng-loopback-starter\node_modules\send\index.js:282:17) at SendStream.onStatError (D:\BITBUCKET\LOOPBACK\ng-loopback-starter\node_modules\send\index.js:433:12) at next (D:\BITBUCKET\LOOPBACK\ng-loopback-starter\node_modules\send\index.js:771:28) at D:\BITBUCKET\LOOPBACK\ng-loopback-starter\node_modules\send\index.js:779:23 at FSReqWrap.oncomplete (fs.js:152:21) status: 404 } events.js:183 throw er; // Unhandled 'error' event ^

Error: ENOENT: no such file or directory, open 'D:\BITBUCKET\LOOPBACK\ng-loopback-starter\logs\error-logger.log' npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! ng-loopback-starter@1.0.0 start:server: node . npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ng-loopback-starter@1.0.0 start:server 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\JEAN\AppData\Roaming\npm-cache_logs\2018-05-28T12_30_59_685Z-debug.log

msirrele commented 6 years ago

In the root of your project, add a 'logs' directory if its not there. Within that directory, add a error-logger.log file. This is the reason for the error.

msirrele commented 6 years ago

@jrandria all good?