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 71cf35b commit 4d49885Copy full SHA for 4d49885
index.js
@@ -19,6 +19,7 @@ const packageName = 'html5-boilerplate';
19
const { from: nameWithVersion } = await extract(packageName+'@'+version, tempDir, {});
20
spinner.text = `${nameWithVersion} copied to ${targetDir}. Have fun!`;
21
}catch(err){
22
+ await fs.remove(tempDir);
23
if(err.code === 'ETARGET' && err.type === 'tag'){
24
spinner.fail(chalk.red(`version '${err.wanted}' not found in npm registry\navaialable versions:`));
25
console.log(err.versions.reverse().join(' | '));
0 commit comments