I upgraded from grunt-cli 0.1.6 to 0.1.9, using 'npm install -g grunt-cli'
% npm --version
1.3.4
% grunt --version
grunt-cli v0.1.9
grunt v0.4.1
%
Our build process uses a Gruntfile.js that is shared by multiple projects, so we use the --gruntfile option when invoking grunt. Here's what happens after updating grunt-cli:
% grunt --gruntfile ../Gruntfile.js
grunt-cli: The grunt command line interface. (v0.1.9)
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 failed
%
'npm ls' shows that I have a local grunt installed (grunt@0.4.1).
If I copy Gruntfile.js to the current directory and run 'grunt', everything is fine. This is part of a build process that has been working smoothly for quite some time, and we've made no changes to that build process other than to update grunt-cli.
I upgraded from grunt-cli 0.1.6 to 0.1.9, using 'npm install -g grunt-cli'
% npm --version
1.3.4
% grunt --version
grunt-cli v0.1.9
grunt v0.4.1
%
Our build process uses a Gruntfile.js that is shared by multiple projects, so we use the --gruntfile option when invoking grunt. Here's what happens after updating grunt-cli:
'npm ls' shows that I have a local grunt installed (grunt@0.4.1).
If I copy Gruntfile.js to the current directory and run 'grunt', everything is fine. This is part of a build process that has been working smoothly for quite some time, and we've made no changes to that build process other than to update grunt-cli.