diff --git a/node_modules/vfs-local/localfs.js b/node_modules/vfs-local/localfs.js index e9cda24e..76cd3587 100644 --- a/node_modules/vfs-local/localfs.js +++ b/node_modules/vfs-local/localfs.js @@ -723,7 +723,8 @@ module.exports = function setup(fsOptions) { buffer.push(["end"]); } function error(err) { - resume(); + if (!options.bufferWrite) + resume(); if (tempPath) { fs.unlink(tempPath, callback.bind(null, err)); }