I am following the documentation here.
These are my library version install through npm install.
“express”: “^4.14.0”,
“express-jwt”: “^5.3.0”,
“express-jwt-authz”: “^1.0.0”,
When I start my server I get error from jwks-rsa library in lru-memoizer folder. This is what I see in the terminal. What am I doing wrong? Please help.
/Users/viditsaxena/Documents/unwander/unwander-services/node_modules/jwks-rsa/node_modules/lru-memoizer/index.js:18
_.extend(load, { del }, options);
^
SyntaxError: Unexpected token }
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/Users/viditsaxena/Documents/unwander/unwander-services/node_modules/jwks-rsa/lib/wrappers/cache.js:45:20)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/Users/viditsaxena/Documents/unwander/unwander-services/node_modules/jwks-rsa/lib/wrappers/index.js:8:14)
at Module._compile (module.js:460:26)