I installed gruntand grunt-cliglobally, using commands sudo npm install -g grunt....
My working folder is `/ opt / web ', please do not ask why :)
Checking grunt version inside `/ opt / web 'works:
$ grunt --version
grunt-cli v0.1.13
However, I cannot run the task from there:
$ grunt
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.
If I install grunt locally, then it asks to install all its dependencies locally (which are already installed globally (!)).
This behavior seems strange to me.
My question is :
Is this a bug or function? Is it in design that grunts only want to work with locally installed things?
source
share