James Eisenlohr James Eisenlohr - 1 year ago 184
Node.js Question

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 .
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.


Answer Source

Did you rum npm install in you project? If you did that and error is existed yet, try install that module : npm install on-finished --save

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download