Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix vue-init fail from gitlab in Windows OS #518

Closed
wants to merge 1 commit into from

Conversation

winnieBear
Copy link

@winnieBear winnieBear commented Jul 4, 2017

the path can NOT contain : in Windows OS, which result in failure of initialization by vue-init -c gitlab:gitlab.host:user/repo project-name in Windows OS. when downloadAndGenerate, the tmp path name may look like C:\Users\username\.vue-templates\gitlab:githost:repo-name, the character : in path lead git clone fail in Window OS.

@kospot
Copy link

kospot commented Aug 15, 2017

@winnieBear Hi, when i use the http to clone package, I found the symbol ':' is can't be in the file name( Window OS)
temp should be this
var tmp = path.join(home, '.vue-templates', template.replace(/[\/|:]/g, '-'))

@yyx990803
Copy link
Member

Closing as this has been included in #565, thanks.

@yyx990803 yyx990803 closed this Feb 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants