diff --git a/lib/cmds/template_generator.js b/lib/cmds/template_generator.js index 354ee87c0..882358634 100644 --- a/lib/cmds/template_generator.js +++ b/lib/cmds/template_generator.js @@ -23,7 +23,7 @@ class TemplateGenerator { file.path = utils.joinPath(...fixed_path); return file; } - }).then(() => { + }, () => { self.installTemplate(fspath, name, true); }); }); diff --git a/lib/utils/utils.js b/lib/utils/utils.js index 80ddac2b4..0f09c7052 100644 --- a/lib/utils/utils.js +++ b/lib/utils/utils.js @@ -183,10 +183,10 @@ function extractTar(filename, packageDirectory, cb) { ); } -function extractZip(filename, packageDirectory, cb) { +function extractZip(filename, packageDirectory, opts, cb) { const decompress = require('decompress'); - decompress(filename, packageDirectory).then((_files) => { + decompress(filename, packageDirectory, opts).then((_files) => { cb(); }); }