You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
Michael-S commentedon Feb 7, 2021
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.
jaoiaisoh commentedon Feb 19, 2021
Thanks @Michael-S ! I think I'll open a PR for this.
Michael-S commentedon Feb 19, 2021
Cool! I'm too new to Node to solve this myself.