0
gulp.watch変更イベントリスナを終了するには、残りのgulpスクリプトを終了しないでください。このエラーにつながるgulp.watch変更イベントリスナーを終了させる方法
function paths() {
var paths = JSON.parse(fs.readFileSync('../../z/paths.json'))
gulp.watch(paths.scriptsFiles, ['test'])
return paths
}
gulp.task('test',() =>
gulp.src(paths().scriptsFiles)
.pipe(...)
.pipe(...)
)
:
MaxListenersExceededWarning:可能持つEventEmitterのメモリリーク検出を
ない非常にエレガントなテストケース。 11変更リスナーが追加されました。制限を増やすにはemitter.setMaxListeners()を使用してください
あなたが試したことを示すことができますか? – randominstanceOfLivingThing
http://stackoverflow.com/a/26176922/7045253が役立つ可能性があります。 –