Char
Char2mo ago

Linux Zip Compression From CLI

I’m trying to compress all files in the current working directory into a zip folder. I’m using this package for compression. The compression works on my windows device, but not on linux devices. The error is the one shoe in the image. The code handling the compression is in this file at line 118. Could someone tell me what i’m doing wrong? I assume it is to do with the wildcard during the compression but i’m not sure.
No description
5 Replies
Niterux
Niterux2mo ago
Seems like it requires the Linux application "zip" to be installed, do you have it installed and in the PATH?
Niterux
Niterux2mo ago
How to Install Zip and Unzip in Linux
How to Install Zip and Unzip in Linux
In this topic, we focus on how you can install the zip and unzip utilities on various Linux distributions.
Niterux
Niterux2mo ago
JSR
/compress.ts - @fakoua/zip-ts - JSR
@fakoua/zip-ts on JSR: Deno Zip archive Forked from (https://github.com/moncefplastin07/deno-zip) !Compatible with jsr Streaming cross-platform zip tool written for Deno 🦕.
Niterux
Niterux2mo ago
@Char do you have zip installed and in the PATH?
Mrcool 🇵🇸
Mrcool 🇵🇸2mo ago
You can use https://jsr.io/@zip-js/zip-js which don't require zip cli, its pure js

Did you find this page helpful?