Ich möchte grunt-html
Aufgabe verwenden, um meine HTML-Dateien zu überprüfen.Wie wird grunt-html global installiert?
installiere ich die Aufgabe lokal mit npm install grunt-html
und es in grunt.js
wie folgt verwenden:
module.exports = function (grunt) { grunt.loadNpmTasks('grunt-html'); grunt.initConfig({ htmllint:{ all:['*.html'] }, }); };
Nun möchte Ich mag die grunt-html
Aufgabe installieren global.
Leider nach den lokalen grunt-html
Knotenmodul entfernt und globalgrunt
Installation scheitert die Aufgabe zu laden. Während grunt htmllint
läuft ich:
>> Local Npm module "grunt-html" not found. Is it installed?
Wenn ich grunt.loadNpmTasks('grunt-html');
aus der grunt.js
Datei entferne ich bekommen:
Task "htmllint" not found. Use --force to continue.
Also meine Frage ist, wie grunt-html
global installiert zu bedienen?