From 4a6512f810654932c799e14a3a380ccd0752bd41 Mon Sep 17 00:00:00 2001 From: Serhii Prysiazhniuk Date: Wed, 6 Dec 2017 14:57:59 +0200 Subject: [PATCH] fix error on Windows (replace ':' with '-' in tmp path) --- bin/vue-init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/vue-init b/bin/vue-init index 8a94fa7996..15e5c93efe 100755 --- a/bin/vue-init +++ b/bin/vue-init @@ -65,7 +65,7 @@ const name = inPlace ? path.relative('../', process.cwd()) : rawName const to = path.resolve(rawName || '.') const clone = program.clone || false -const tmp = path.join(home, '.vue-templates', template.replace(/\//g, '-')) +const tmp = path.join(home, '.vue-templates', template.replace(/[/:]/g, '-')) if (program.offline) { console.log(`> Use cached template at ${chalk.yellow(tildify(tmp))}`) template = tmp