grunt-html
작업을 사용하여 HTML 파일을 확인하고 싶습니다.grunt-html을 어떻게 전 세계적으로 설치 했습니까?
나는 npm install grunt-html
로컬로 작업 를 설치하고 다음과 같이 grunt.js
에서 사용 :
module.exports = function (grunt) { grunt.loadNpmTasks('grunt-html'); grunt.initConfig({ htmllint:{ all:['*.html'] }, }); };지금 나는
grunt-html
작업 세계적으로를 설치하고 싶습니다. 불행하게도 로컬 grunt-html
노드 모듈을 제거하고 전 세계적으로 그것을 를 설치 한 후grunt
는 작업을로드 할 수 없습니다. grunt htmllint
을 실행하는 동안 내가 얻을 :
>> Local Npm module "grunt-html" not found. Is it installed?
나는 grunt.js
파일에서 grunt.loadNpmTasks('grunt-html');
을 제거하면 내가 얻을 : grunt-html
이 세계적으로를 설치 사용하는 방법을
Task "htmllint" not found. Use --force to continue.
?