search

Home  >  Q&A  >  body text

angular.js - The difference between npm run lite and npm start commands

If there are errors in the project, such as some grammatical errors, an error will be reported when running npm start, but you can run npm run lite directly and open the browser. Why?
"npm start command, but the npm run lite command is actually run." Does this mean that npm start and npm run lite are the same?
"npm run lite runs the service alone and cannot compile js." That's why the error is ignored. Is it displayed in the browser?

我想大声告诉你我想大声告诉你2885 days ago642

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-05-15 17:08:34

    Open package.json,对比一下 scripts 下面 startlite and you will know the difference between the two.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-15 17:08:34

    First of all, let me tell you, this is documented
    Secondly, their names are different, of course they have different meanings. Run something, start? Of course it is the beginning, so be more special and read the documentation for details.
    BTW Real-name objection to the above of

    npm start==npm run start
    

    if the package's "scripts" object doesn't have "start" command, it would throw an error

    reply
    0
  • Cancelreply