We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99df048 commit 8398ae7Copy full SHA for 8398ae7
lib/app.js
@@ -246,10 +246,17 @@ module.exports = {
246
'template');
247
process.exit(1);
248
}
249
+
250
+ var caughtFinishedEvent = false;
251
untar.on('end', function() {
252
+ if (caughtFinishedEvent) return;
253
+ caughtFinishedEvent = true;
254
255
try {
256
fs.renameSync(tempDir + templateRoot, projectDir);
- rimraf.sync(tempDir);
257
+ if (fs.existsSync(tempDir)) {
258
+ rimraf.sync(tempDir);
259
+ }
260
} catch (err) {
261
console.log(chalk.red('Installation Error') + ' - Couldn\'t relocate project assets');
262
0 commit comments