https://pantsbuild.org/ logo
#general
Title
# general
e

enough-analyst-54434

10/04/2018, 6:52 PM
This seems to be a unique issue with
imagemin-webpack-plugin
packaging:
Copy code
$ npm pack imagemin-webpack-plugin@2.2.0
...
imagemin-webpack-plugin-2.2.0.tgz
$ mkdir /tmp/imagemin-webpack-plugin-2.2.0
$ tar -xzf imagemin-webpack-plugin-2.2.0.tgz -C /tmp/imagemin-webpack-plugin-2.2.0/
tar: package/dist/helpers.js: Cannot open: Permission denied
tar: package/dist/helpers.js.map: Cannot open: Permission denied
tar: package/dist/index.js: Cannot open: Permission denied
tar: package/dist/index.js.map: Cannot open: Permission denied
tar: package/src/helpers.js: Cannot open: Permission denied
tar: package/src/index.js: Cannot open: Permission denied
tar: Exiting with failure status due to previous errors
$ ls -l /tmp/imagemin-webpack-plugin-2.2.0/
total 0
drw-r--r-- 4 jsirois jsirois 140 Jul 27 11:57 package
Whereas:
Copy code
$ npm pack imagemin-mozjpeg@7.0.0
...
imagemin-mozjpeg-7.0.0.tgz
$ mkdir /tmp/imagemin-mozjpeg-7.0.0
$ tar -xzf imagemin-mozjpeg-7.0.0.tgz -C /tmp/imagemin-mozjpeg-7.0.0
$ ls -l /tmp/imagemin-mozjpeg-7.0.0
total 0
drwxr-xr-x 2 jsirois jsirois 120 Oct  4 14:49 package
And ditto for
npm pack webpack
as one other random sample.