问答详情
源自:5-4 剖析Grunt Tasks - grunt serve(一)

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

错误提示

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


提问者:慕粉3822249 2018-03-24 21:37

个回答

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

    npm i grunt -S

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