diff --git a/bin/vue-init b/bin/vue-init index b0d8508b2b..117e2106d6 100755 --- a/bin/vue-init +++ b/bin/vue-init @@ -91,7 +91,7 @@ if (exists(to)) { function run () { // check if template is local - if (/^[./]|(\w:)/.test(template)) { + if (/^\.{1,2}\/|^\w:|^\//.test(template)) { var templatePath = template.charAt(0) === '/' || /^\w:/.test(template) ? template : path.normalize(path.join(process.cwd(), template))