简体   繁体   中英

Local Npm module “grunt-template-jasmine-istanbul” not found

Here is my grunt config file - https://github.com/mdarif/JavaScript-Boilerplate/blob/1.3/GruntFile.js

It's not loading the module - grunt-template-jasmine-istanbul and getting Local Npm module "grunt-template-jasmine-istanbul" not found. Is it installed? Local Npm module "grunt-template-jasmine-istanbul" not found. Is it installed?

Loading the grunt tasks like require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

Hope someone can help quickly!

I have to install 'load-grunt-tasks' package to load multiple grunt tasks excludes grunt-template-jasmine-istanbul rather than ' matchdep ' package then given code works like charm.

require('load-grunt-tasks')(grunt, {
  pattern: ['grunt-*', '!grunt-template-jasmine-istanbul']
});

as i told you in your other post. just install that module:

$ npm install grunt-template-jasmine-istanbul

you probably should save it into your package.json, you can do that directly when installing the plugin:

$ npm install grunt-template-jasmine-istanbul --save-dev

edit: if you use ..('matchdep').filterDev , it filters the devDependencies in your package.json. grunt-template-jasmine-istanbul is missing in your package.json! easiest way to fix that is the second command i gave you above!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM