-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Issue with using vue-cli with private bitbucket repo #403
Comments
Unencrypted SSH key should be configured for git. This is probably caused by missing ssh key or encrypted key asking for password or host mismatch. |
I believe part of my issue is that the version of vue-cli installed via npm does not have the changes referenced to in issue #355. I went ahead and cloned master and ran it again, and now I'm getting
yet I can clone |
After digging around more into what's going on, beyond the issue of the changes mentioned in #355 not being in the version npm installs, I've found the cause of my problem with |
try |
That seems to have done the trick. Thanks @zigomir. Still not sure why executing |
So,
|
I'm seeing the exact behavior @unthunk describes on my MacBook, but I'd like to add 2 things for Windows.
Hopefully this makes sense and is enough to go on for a fix. Thanks |
I'm having the same problem on my Mac both with Github and Gitlab private repo's. Is there a way to have vue-cli output more debugging info? |
I was having the same issue when using the full URL to the template. The short version seems to work just fine.
instead of
|
Are there any updates regarding this? Trying to "vue init" using a private bitbucket repo still doesn't work :( |
You can workaround by checking out your private template and installing from the lcoal copy:
You will probably want to git pull on the local copy of the template before you vue init from it. |
@unthunk is correct about using the --clone flag. It's required when you are using private repo's which is noted in the download-git-repo readme. @rwb7041 @scnich Additionally, take note that the shorthand notation for custom templates will not work in private repos either. Instead of Lastly, as @unthunk suggested, the first init using the --clone flag will work just fine. But subsequent usages will throw an error. This is because the directory already exists, and this appears to be coming from git-clone. So, you can either nuke the template cache:
before each usage, which guarantees you get the latest version of your private repo, or you can clone it locally and install from the local path, or use the --offline flag to get the last cached template. In both cases you run the risk of using an out of date template.
Documentation just need to reflect the requirement of the --clone flag for private repo's. The error where the cached template causes errors on subsequent uses might best be solved by fixing the caching issues in #409, by removing the cached template first, that error should be avoided. |
Pull request #450 addresses removing existing template directories which resolves the issue where the subsequent clones of private repo's fail. |
I've got a customized version of the webpack template that I'm using on my projects. Hosting it on a public github account works fine, but my organization has decided to go with private bitbucket repositories. I copied my github repository to bitbucket and went to test creating a new vue app with the cli and my bitbucket template with the following command:
vue init -c bitbucket:rwb7041/vuetemplate myproject
I get the following error:
vue-cli · Failed to download repo vuejs-templates/myproject: 'git clone' failed with status 128
So next I tried creating the myproject directory and running the following inside that directory:
vue init -c bitbucket:rwb7041/vuetemplate
And I got the following error (after responding 'Y' to the question of generating project in the current directory:
vue-cli · Local template "bitbucket:rwb7041/vuetemplate" not found.
I am using version 2.8.1 of the vue-cli. What am I doing incorrectly?
The text was updated successfully, but these errors were encountered: