Error trying to use oidc

arun@arun-HP-Pavilion-g6-Notebook-PC:~/Documents/authentication_example/devscore-api$ DEBUG=myapp:* npm start

myapp@0.0.1 start /home/arun/Documents/authentication_example/devscore-api
nodejs ./bin/www

/home/arun/Documents/authentication_example/devscore-api/node_modules/express/lib/application.js:178
if (fn.handle && fn.set) mount_app = fn;
^

TypeError: Cannot read property ‘handle’ of undefined
at Function.app.use (/home/arun/Documents/authentication_example/devscore-api/node_modules/express/lib/application.js:178:10)
at Object. (/home/arun/Documents/authentication_example/devscore-api/app.js:18:5)
at Module._compile (module.js:652:30)
at Object.Module._extensions…js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/home/arun/Documents/authentication_example/devscore-api/bin/www:4:11)

npm ERR! Linux 4.15.0-20-generic
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “start”
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! myapp@0.0.1 start: nodejs ./bin/www
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the myapp@0.0.1 start script ‘nodejs ./bin/www’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the myapp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! nodejs ./bin/www
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs myapp
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls myapp
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/arun/Documents/authentication_example/devscore-api/npm-debug.log
arun@arun-HP-Pavilion-g6-Notebook-PC:~/Documents/authentication_example/devscore-api$

Here is the content of the www file and app.js file for your reference.

https://paste.ubuntu.com/p/YNXHdhBxFZ/ (www)
https://paste.ubuntu.com/p/f6h2hcvjRZ/ (app.js)