search

Home  >  Q&A  >  body text

javascript - grunt server启动报错

我用yo创建angular,完成后
grunt server失败,找不到gruntfile,项目里是有这个文件的
然后我执行npm install grunt --save-dev

     npm install
     还是不行?
  

phpcn_u1582phpcn_u15822743 days ago853

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