docusaurus-openapi-docs icon indicating copy to clipboard operation
docusaurus-openapi-docs copied to clipboard

Cloning Git template failed

Open andreslon opened this issue 2 years ago • 3 comments

The cloning template provided in the documentation at https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/tree/main#installing-from-template seems to be broken.

Even after trying different cloning options and forking the repository, the same error persists.

Refer to the screenshot for more details.

image

andreslon avatar Oct 04 '23 12:10 andreslon

:tada: Thanks for opening your first issue here! Welcome to the community!

I also get the same error following documentation

https://github.com/PaloAltoNetworks/docusaurus-openapi-docs

PS C:\Users\Documents> npx [email protected] my-website --package-manager yarn
√ Select a template below... » Git repository
√ Enter a repository URL from GitHub, Bitbucket, GitLab, or any other public repo.
(e.g: https://github.com/ownerName/repoName.git) ... https://github.com/PaloAltoNetworks/docusaurus-template-openapi-docs.git
√ How should we clone this repo? » Copy: do a shallow clone, but do not create a git repo
[INFO] Creating new Docusaurus project...
fatal: could not create leading directories of ''C:\Users\Documents\my-website'': Invalid argument[ERROR] Cloning Git template failed!

graham-fleming avatar Dec 22 '23 19:12 graham-fleming

I had the same problem, I solved it using the WSL feature of windows, the error only occurs in windows.

lxluxo23 avatar Apr 03 '24 20:04 lxluxo23

I had the same problem, I solved it using the WSL feature of windows, the error only occurs in windows.

I tried with WSL and it still doesn't work.

Is there another solution to this?

joaorodr84 avatar Jul 05 '24 09:07 joaorodr84