I have a grunt task that is installed via npm taskA (not the actual name)
taskA has a dependency: grunt-contrib-stylus and that is specified in taskA's package.json and installed. For some reason when running grunt default from the main Gruntfile.js it gives an error.
Warning: Task "stylus" not found. Use --force to continue.
And the fix is to require grunt-contrib-stylus in the main project. I want to avoid this. What would be the reason that my task is not using the grunt-contrib-stylus in its node_modules/ ?
taskA
module.exports = function(grunt) {
'use strict';
grunt.loadNpmTasks('grunt-contrib-stylus');
...
main Gruntfile.js
...
grunt.loadNpmTasks('taskA');
...