Como usar o grunt-html instalado globalmente?

Eu gostaria de usargrunt-html tarefa para verificar meus arquivos HTML.

Eu instalo a tarefalocalmente comnpm install grunt-html e usá-lo emgrunt.js do seguinte modo:

module.exports = function (grunt) {

    grunt.loadNpmTasks('grunt-html');

    grunt.initConfig({

        htmllint:{
            all:['*.html']
        },

    });

};

Agora eu gostaria de instalar ogrunt-html tarefaglobalmente.

Infelizmente depois de remover o localgrunt-html módulo de nó e instalá-loglobalmente grunt falha ao carregar a tarefa. Enquanto correndogrunt htmllint Eu recebo:

>> Local Npm module "grunt-html" not found. Is it installed?

Se eu removergrunt.loadNpmTasks('grunt-html'); degrunt.js Eu recebo o arquivo:

 Task "htmllint" not found. Use --force to continue. 

Então minha pergunta é como usargrunt-html instaladoglobalmente?

questionAnswers(1)

yourAnswerToTheQuestion