search

Home  >  Q&A  >  body text

javascript - grunt server startup error

I used yo to create angular. After completion
grunt server failed and gruntfile could not be found. There is this file in the project
Then I executed npm install grunt --save-dev

     npm install
     还是不行?
  

phpcn_u1582phpcn_u15822815 days ago892

reply all(3)I'll reply

  • 黄舟

    黄舟2017-05-15 17:15:41

    See you again. . .
    Actually, I didn’t get it right when I installed angular using yo. After I installed grunt server, the web page opening style was messed up. Just not doing it.

    If your grunt server prompts that gruntfile cannot be found, you can check if there is such a file in your project directory.

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-15 17:15:41

    Is there a corresponding gruntfile.js file in the directory? If not, there is a problem.

    reply
    0
  • PHPz

    PHPz2017-05-15 17:15:41

    There is no gruntfile.js, the problem has been pointed out by you, this is gulpfile.js

    reply
    0
  • Cancelreply