What is the different between using StrongLoop's “slc run” and “node app.js”

前端 未结 6 852
死守一世寂寞
死守一世寂寞 2021-01-06 05:31

I\'m working through the StrongLoop\'s getting started instructions and created my sample app. Whilst the instructions tell me to use:

slc run .
6条回答
  •  隐瞒了意图╮
    2021-01-06 06:32

    Based on the latest release at the moment (v2.1.1), the main immediate benefit of running slc run instead of node app.js is you get a REPL at the same time (lib/run-reple.js#L150L24). Looks like all you have to do is have main set properly in package.json, since it uses Module._load().

    If you run slc run app.js you get no benefit as far as I can tell: lib/commands/run.js#30.

    Yay open source! https://github.com/strongloop/strong-cli

提交回复
热议问题