¿Cómo usar grunt-html instalado globalmente?
Me gustaria usargrunt-html
tarea para comprobar mis archivos HTML.
Instalo la tareaen la zona connpm install grunt-html
y usarlo engrunt.js
como sigue:
module.exports = function (grunt) { grunt.loadNpmTasks('grunt-html'); grunt.initConfig({ htmllint:{ all:['*.html'] }, }); };
Ahora me gustaría instalar elgrunt-html
tareaglobalmente.
Desafortunadamente después de quitar el localgrunt-html
módulo de nodo y su instalaciónglobalmente grunt
falla al cargar la tarea. Mientras corregrunt htmllint
Yo obtengo:
>> Local Npm module "grunt-html" not found. Is it installed?
Si me quitogrunt.loadNpmTasks('grunt-html');
desde elgrunt.js
archivo me sale:
Task "htmllint" not found. Use --force to continue.
Así que mi pregunta es cómo usargrunt-html
instaladoglobalmente?