Skip to content

Commit 74cd5e1

Browse files
kospotyyx990803
authored andcommitted
fix the vue init error from private repository in window OS (#565)
1 parent 81a509d commit 74cd5e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/vue-init

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const name = inPlace ? path.relative('../', process.cwd()) : rawName
6565
const to = path.resolve(rawName || '.')
6666
const clone = program.clone || false
6767

68-
const tmp = path.join(home, '.vue-templates', template.replace(/\//g, '-'))
68+
const tmp = path.join(home, '.vue-templates', template.replace(/[\/:]/g, '-'))
6969
if (program.offline) {
7070
console.log(`> Use cached template at ${chalk.yellow(tildify(tmp))}`)
7171
template = tmp

0 commit comments

Comments
 (0)