Skip to content

Commit

Permalink
fix the vue init error from private repository in window OS (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
kospot authored and yyx990803 committed Feb 5, 2018
1 parent 81a509d commit 74cd5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/vue-init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 74cd5e1

Please sign in to comment.