Search code examples
node.jsloopbackjsstrongloop

StrongLoop Loopback - Error: Cannot find module 'on-finished'


I'm having a blocking issue with StrongLoop Loopback. I just started having the following error when I tried to start up my API...

James-MacBook-Pro:rti_loopback_api jameseisenlohr$ node . module.js:327 throw err; ^

Error: Cannot find module 'on-finished'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/Users/jameseisenlohr/Google Drive/Sites/rti_loopback_api/node_modules/express/node_modules/finalhandler/index.js:16:18)
at Module._compile (module.js:397:26)
at Object.Module._extensions..js (module.js:404:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)

James-MacBook-Pro:rti_loopback_api jameseisenlohr$

Any thoughts? I am stumped. I defined no model named 'no-finished'. I have no clue where to look to resolve this error.

Any input would be greatly appreciated.

Thanks, James


Solution

  • Did you run npm install in your project? If you did that and error still exists, try installing that module : npm install on-finished --save