Skip to content

error spawn zip ENOENT #6

Open
Open

Description

@dportabella

any idea about this error?

$ uname -a
Linux cdm6_58 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

$ sudo apt install npm
$ sudo npm install -g share-cli

$ share myfile.txt
✖ Preparing file failed
  Server
  Tunnel
  Copy
  Download

spawn zip ENOENT

Activity

  1. marionebl commented on May 13, 2019

    @marionebl
    Owner

    Thanks for raising this issue!
    Yes, zip has to be in your PATH so share-cli can call it:

    await execa(
    "zip",
    ["-P", options.password, recursive ? "-r" : "", zip, filePath].filter(
    Boolean
    )
    );

    This should either be replaced by a node implementation or be part of the docs.

  2. dportabella commented on May 13, 2019

    @dportabella
    Author

    this solves the issue, thanks! :)

  3. blankdvth commented on Jan 5, 2021

    @blankdvth

    I encountered this issue as well (on windows) and it seems that the zip command doesn't exist. I was able to find a binary for zip and unzip for windows and using it works however it probably isn't the best solution.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions