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

Error while using sync to create a drive. #33

Open
Octalbyte opened this issue Jan 18, 2021 · 3 comments
Open

Error while using sync to create a drive. #33

Octalbyte opened this issue Jan 18, 2021 · 3 comments

Comments

@Octalbyte
Copy link
Contributor

When I try to create a hyperdrive I get this error:
image

I don't now if it's an issue with hyperdrive itself, so I opened it here.
I'm running cmd as admin.
Os: windows 10 pro.

@Michael-S
Copy link

I hit this same error on Windows 10 home. I believe it's caused by https://github.com/hypercore-protocol/cli/blob/master/lib/commands/drive/sync.js#L66 it's using the mkdirp NodeJS package 'sync' command, and according to https://www.npmjs.com/package/mkdirp:

"""windows vs unix caveat

On Windows file systems, attempts to create a root directory (ie, a drive letter or root UNC path) will fail. If the root directory exists, then it will fail with EPERM. """

And of course, EPERM is the exact error you and I are seeing on Windows.

I am not having any problems with hyp cli on Linux, but I'm trying to set up a hyp sync to back up my kids' files on their Windows gaming PCs.

@Octalbyte
Copy link
Contributor Author

Thanks @Michael-S ! I think I'll open a PR for this.

@Michael-S
Copy link

Cool! I'm too new to Node to solve this myself.

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

No branches or pull requests

2 participants