Я установил и grunt-cli и grunt глобально, используя опцию -g.Почему grunt разрешает глобальные установки?
Однако, когда я пытаюсь запустить ворчание я получаю эту ошибку:
grunt --gruntfile /Users/a/root/config/Gruntfile.js
grunt-cli: The grunt command line interface. (v0.1.13)
Fatal error: Unable to find local grunt.
If you're seeing this message, either a Gruntfile wasn't found or 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
Это сбивает с толку, поскольку это, кажется, сказать, что вы, предполагают, чтобы сделать местные установки.
На самом деле это противоречиво. У меня явно есть файл grunt.
Возможный дубликат [Grunt-cli and Grunt - одно приложение, две версии?] (Http://stackoverflow.com/questions/13704917/grunt-cli-and-grunt-same-app-two-versions) – rockerest