gulp-load-plugins

Gulp load plugins error dep is not defiend

不羁的心 提交于 2019-12-25 09:05:29
问题 I try to use gulp-load-plugins but I got error . for example I try the following var istanbul = require('gulp-istanbul'); var $ = require('gulp-load-plugins')({lazy: true}); gulp.task('run', function () { return gulp.src(config.files) .pipe($.istanbul( { instrumenter: isparta.Instrumenter } )) .pipe(istanbul.hookRequire()); }); when I remove the var istanbul = require('gulp-istanbul'); I got error ReferenceError: istanbul is not defined "devDependencies": { "chai": "3.5.0", "gulp": "^3.9.1",

gulp-load-plugins not loading plugins

a 夏天 提交于 2019-12-19 08:55:17
问题 gulp-load-plugins is not loading any plugins. Can anyone suggest why this might be? Node: v0.12.0 NPM: v2.7.3 My package.json : { "name": "foo", "version": "0.0.1", "dependencies": {}, "devDependencies": { "gulp": "^3.8.11", "gulp-load-plugins": "^0.9.0" } } My gulpfile.js : var gulp = require('gulp'); var gulpLoadPlugins = require('gulp-load-plugins'); var plugins = gulpLoadPlugins(); console.log(JSON.stringify(plugins)); // {} gulp.task('default'); 回答1: Install other gulp plugins. tl;dr If

events.js:160 throw er; // Unhandled 'error' event

别说谁变了你拦得住时间么 提交于 2019-12-03 18:30:15
问题 The project I worked on was built with gulp. Recently I updated the node version to v6.3.1. Then something came wrong. A task named 'html' throws an error. Here is the part of error code of it. bogon:toClient work$ gulp html (node:2519) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. [10:26:10] Using gulpfile ~/Project/TIME_Cancer_Treatment_Centers_of_America(CTCA)/toClient/gulpfile.js [10:26:10]

gulp-load-plugins not loading plugins

China☆狼群 提交于 2019-12-01 07:02:09
gulp-load-plugins is not loading any plugins. Can anyone suggest why this might be? Node: v0.12.0 NPM: v2.7.3 My package.json : { "name": "foo", "version": "0.0.1", "dependencies": {}, "devDependencies": { "gulp": "^3.8.11", "gulp-load-plugins": "^0.9.0" } } My gulpfile.js : var gulp = require('gulp'); var gulpLoadPlugins = require('gulp-load-plugins'); var plugins = gulpLoadPlugins(); console.log(JSON.stringify(plugins)); // {} gulp.task('default'); Install other gulp plugins. tl;dr If that is your complete package.json , looks like you have no other gulp plugins installed. Lets say the

events.js:160 throw er; // Unhandled 'error' event

江枫思渺然 提交于 2019-11-29 21:28:22
The project I worked on was built with gulp. Recently I updated the node version to v6.3.1. Then something came wrong. A task named 'html' throws an error. Here is the part of error code of it. bogon:toClient work$ gulp html (node:2519) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. [10:26:10] Using gulpfile ~/Project/TIME_Cancer_Treatment_Centers_of_America(CTCA)/toClient/gulpfile.js [10:26:10] Starting 'html'... (node:2519) fs: re-evaluating native module sources is not supported. If you are using