Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
grunt-cli (grunt-command-line-interface) is just a way to run grunt-task from the console
grunt is the main package with basic tasks
To work correctly you need to install both, but if grunt-cli must be installed globally in system (npm install -g grunt-cli), it is better to install grunt locally relative to the project to bind to a specific version of grunt.
For example - in the root of the project, create the package.json file (echo '{}' > package.json), then install grunt (npm install grunt --save), --save indicates that the package should be saved in the package.json file and set the version installed package.
package.json will contain the following lines:
{
"dependencies": {
"grunt": "~0.4.2"
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question