reset password
Author Message
wevanw
Posts: 25
Posted 23:30 Feb 25, 2017 |

Hi all,

I have created the package.json and also included two js files: cli.js and app.js.  But when I type "node cli.js" , it showed nothing(no reaction), why? Did I miss something?

Any help would be greatly appreciated!

ngosrani
Posts: 31
Posted 23:34 Feb 25, 2017 |

Node cli.js --run try this. 

wevanw
Posts: 25
Posted 23:36 Feb 25, 2017 |
ngosrani wrote:

Node cli.js --run try this. 

O it works , many thanks!!

mjaved3
Posts: 4
Posted 23:36 Feb 25, 2017 |

that's because you're missing the additional arguments that are supposed to be passed after "node cli.js". It should be either -r or --run.

ngosrani
Posts: 31
Posted 23:39 Feb 25, 2017 |
we ane wrote:
ngosrani wrote:

Node cli.js --run try this. 

O it works , many thanks!!

Welcome 🙂.

wevanw
Posts: 25
Posted 23:41 Feb 25, 2017 |

 

mjaved3 wrote:

that's because you're missing the additional arguments that are supposed to be passed after "node cli.js". It should be either -r or --run. 

Got it, I think I missed a lot of content from last Sunday's lecture, the professor was talking too fast. So for another app, we should also specify additional arguments to run it right? THanks!

ngosrani
Posts: 31
Posted 23:43 Feb 25, 2017 |

Yes you can exactly use the same content for your homework and you do need to specify those arguments