जिस परियोजना पर मैंने काम किया था वह गल्प के साथ बनाया गया था।events.js: 160 फेंक एर; // अनचाहे 'त्रुटि' घटना
हाल ही में मैंने नोड संस्करण को v6.3.1 में अपडेट किया। फिर कुछ गलत हुआ।
'html' नामक एक कार्य एक त्रुटि फेंकता है। यहां त्रुटि कोड का हिस्सा है।
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 the graceful-fs module, please update it to a more recent version.
events.js:160
throw er; // Unhandled 'error' event
^
Error: CSS parse error scripts/vendor.js: Unexpected input
1 |!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function i(t){var e="length"in t&&t.length,i=J.type(t);return"function"!==i&&!J.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===i||0===e||
और कार्य के कोड 'एचटीएमएल':
var $ = require('gulp-load-plugins')();
gulp.task('html', function() {
var assets = $.useref.assets({searchPath: ['.tmp']});
return gulp.src('app/*.html')
.pipe(assets)
.pipe($.if('*.js', $.uglify()))
.pipe($.if('*.css', $.csso()))
.pipe(assets.restore())
.pipe($.useref())
.pipe($.if('*.html', $.minifyHtml({conditionals: true, loose: true})))
.pipe(gulp.dest('dist'));
});
मैं एक बहुत googled लेकिन मैं मेरे लिए उपयुक्त एक उचित जवाब नहीं मिला है।
[Node.js - घटनाओं js 72 फेंक एर बिना क्रिया 'त्रुटि' घटना] की संभावित डुप्लिकेट (http://stackoverflow.com/questions/22960703/node-js-events-js-72-throw- er-unhandled-error-event) –