node.jsdockerzipnode-modulesconcourse

zip warning: missing end signature when zipping a directory


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.


Solution

  • It means zip is expecting for a landing zip file name, provide a file name for the compressed version:

    zip myfile.zip myfile