Skip to content

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

@womak24

Description

@womak24

Hello people,
I am using vnu with grunt-html and for writing HTML report I am using grunt-html-html-reporter. I have the following setup:

Gruntfile.js (initConfig)

    htmllint: {
      options: {
        errorlevels: ['error'], // For now we only look at errors.
        force: true,
        reporter: './node_modules/grunt-html-html-reporter', 
        reporterOutput: 'nu-report.html',
        // Stuff to ignore while validating
        ignore: ['Attribute “type” not allowed on element “i” at this point.']
      },
      all: {
        src: ['dist/xx/*.html', 'dist/xxx/templates/**/*.html'] 
      }
    }

And I load it with:

  require('load-grunt-tasks')(grunt);
  grunt.registerTask('nu', ['htmllint']); 

In my package.JSON I have the following:

  "devDependencies": {
    "crc32-stream": "^2.0.0",
    "graceful-fs": "^4.1.11",
    "grunt": "^1.0.3",
    "grunt-bootlint": "^0.10.2",
    "grunt-cli": "^1.2.0",
    "grunt-compile-handlebars": "^2.0.2",
    "grunt-contrib-clean": "^0.7.0",
    "grunt-contrib-compress": "^1.4.3",
    "grunt-contrib-connect": "^1.0.2",
    "grunt-contrib-copy": "^1.0.0",
    "grunt-contrib-uglify": "^2.0.0",
    "grunt-contrib-watch": "^1.1.0",
    "grunt-html": "^9.3.0",
    "grunt-html-html-reporter": "^3.1.0",
    "grunt-sass": "^2.0.0",
    "grunt-sass-lint": "^0.2.4",
    "icon-font-generator": "^1.1.1",
    "load-grunt-tasks": "^4.0.0"
  },
  "dependencies": {
    "bootstrap-sass": "^3.3.7",
    "casperjs": "^1.1.4",
    "sass-lint": "^1.12.1",
    "vnu-jar": "^18.8.29"
  }

I deleted my node_modeules folder and run npm install, but still when I run grunt nu I am getting the following error:

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

But I get a HTML report in the end. I would love to understand what happens, cause it is so confusing with that error, which is actually not an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions