Skip to content

Error while using sync to create a drive. #33

Open

Description

@jaoiaisoh

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.

Activity

  1. Michael-S commented on Feb 7, 2021

    @Michael-S

    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.

  2. jaoiaisoh commented on Feb 19, 2021

    @jaoiaisoh
    ContributorAuthor

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

  3. Michael-S commented on Feb 19, 2021

    @Michael-S

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions