I am running zip -r nm.zip node_modules and receiving this error:
zip warning: missing end signature--probably not a zip file (did you
zip warning: remember to use binary mode when you transferred it?)
zip warning: (if you are trying to read a damaged archive try -F)
node_modules is a directory. I am doing this within a docker container, within concourse.
It means zip is expecting for a landing zip file name, provide a file name for the compressed version:
zip myfile.zip myfile
As noted in the comment by @pmqs, this error also comes up if there is an existing file with the same name as the proposed archive name (e.g. because one of the previous processes crashed).
To fix that delete the file and re-run the zip command:
rm -vi nm.zip
zip -r nm.zip node_modules
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With