Closed cpliakas closed 10 years ago
Error between chair and keyboard. Not only should I read the docs, but I should also follow them in the order the are written.
Putting grunt.loadNpmTasks('grunt-composer')
above grunt.initConfig
fixed the issue.
Revised Gruntfile is below:
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-composer')
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
composer : {
options : {
usePhp: true,
composerLocation: '/opt/composer/composer.phar'
}
}
})
}
For some reason (probably something I am doing since I am new to Grunt) I cannot run composer commands because Grunt is telling me that the config property is missing. For example, running
grunt composer:install
produces the following error:My Gruntfile is below: