James Eisenlohr
James Eisenlohr

Reputation: 278

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

Upvotes: 1

Views: 6893

Answers (3)

Ebrahim Pasbani
Ebrahim Pasbani

Reputation: 9406

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

Upvotes: 4

Josue Martinez
Josue Martinez

Reputation: 436

Make sure strongloop is installed.
Use the following command:

npm install -g strongloop --msvs_version=2012

Upvotes: -1

sayNode
sayNode

Reputation: 9

Please provide more information regarding your mac environment as well as reproducible steps, This will allow us to reproduce your issues.

You can enter the following in your terminal.

 which node
 which npm
 npm ls -g  strongloop

1.Which version of node.js and npm and where is it installed? 2.You loopback project is under google-drive ,is node.js npm and strongloop also under google-drive or somewhere else? 3.How did you create your loopback project?

when you perform slc loopback - what did you enter ?

 What kind of application do you have in mind? empty-server (An empty LoopBack API, without any configured models or dataso
urces)
? Which version of LoopBack would you like to use? 3.x or 2.x

4.You defined no model named 'no-finished'.<== Can you please elaborate? Did you do a slc loopback:model?

If you can attach your generated project , it will be helpful.

Thank you.

Upvotes: 0

Related Questions