How can I run grunt with global path?

When I run 'grunt' at commend line, error occurred 'enable to find local grunt.' Because, in my directory there is no grunt module. I want to run grunt with global path and not contain node_modules in my project folder. The more adding node_modules in my project the slower running a project. In my project, there is only Gruntfile.js except for any other node_modules. How can I run grunt and grunt sub modules with global path? I can't find solution about this problem anywhere.

链接地址: http://www.djcxy.com/p/65830.html

上一篇: 找不到'npmlog'模块

下一篇: 我如何使用全局路径运行grunt?