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 |
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 |
Welcome 🙂. |
wevanw
Posts: 25
|
Posted 23:41 Feb 25, 2017 |
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 |