提示grunt没有被安装到本地项目

来源:5-4 剖析Grunt Tasks - grunt serve(一)

慕粉3822249

2018-03-24 21:37

错误提示

E:\grunt-in-action\grunt-by-webapp>grunt serve

grunt-cli: The grunt command line interface (v1.2.0)


Fatal error: Unable to find local grunt.


If you're seeing this message, grunt hasn't been installed locally to

your project. For more information about installing and configuring grunt,

please see the Getting Started guide:


http://gruntjs.com/getting-started


写回答 关注

1回答

  • love丨life
    2018-08-06 18:24:07

    npm i grunt -S

    在项目里面运行后再尝试打包试一下

Grunt-beginner前端自动化工具

通过配置Grunt自动化工具,提高您的工作效率,出乎您的想象

60389 学习 · 408 问题

查看课程

相似问题