chilly-painter-67686
10/04/2018, 5:56 AMstocky-account-81383
10/04/2018, 5:56 AMchilly-painter-67686
10/04/2018, 5:57 AMchilly-painter-67686
10/04/2018, 5:57 AMstocky-account-81383
10/04/2018, 5:58 AMchilly-painter-67686
10/04/2018, 6:00 AMstocky-account-81383
10/04/2018, 6:01 AMstocky-account-81383
10/04/2018, 6:01 AMchilly-painter-67686
10/04/2018, 6:03 AMstocky-account-81383
10/04/2018, 6:12 AMstocky-account-81383
10/04/2018, 2:46 PMstocky-account-81383
10/04/2018, 2:48 PMred-balloon-89377
10/04/2018, 2:57 PMself.context
.red-balloon-89377
10/04/2018, 2:58 PMself.context.target_roots
, which has the information about⦠the target rootshundreds-father-404
10/04/2018, 4:11 PMwitty-crayon-22786
10/04/2018, 4:46 PMstrong-garage-46607
10/04/2018, 5:13 PMacoustic-book-58772
10/04/2018, 5:58 PMerror An unexpected error occurred: "EACCES: permission denied, unlink '/Users/paul.yau/Library/Caches/Yarn/npm-imagemin-webpack-plugin-2.2.0-e9c6b3223c979bd50a81c9f8b3741e6f420a54e8/.yarn-metadata.json'".
If I run it with sudo, I get:
error Couldn't find a package.json file in "/Users/paul.yau/Library/Caches/Yarn/npm-Metropolis-0.0.0-813a8382e5821a200486404e535ec7f5cc2a6b03"
Which is probably a dependency issue (that module is a github link to something entirely different from the npm metropolis
module). But trying to run with sudo in the first place doesn't seem right at all.....acoustic-book-58772
10/04/2018, 5:59 PM--changed
)acoustic-book-58772
10/04/2018, 5:59 PMwitty-crayon-22786
10/04/2018, 6:08 PMsudo
, but i expect that at some point you did run it with sudowitty-crayon-22786
10/04/2018, 6:08 PMsudo
witty-crayon-22786
10/04/2018, 6:09 PMacoustic-book-58772
10/04/2018, 6:17 PMacoustic-book-58772
10/04/2018, 6:29 PM.pants.d
, ~/.cache/pants
, and ~/Library/Caches
, though there was one folder that belongs to root, but Yarn belongs to me
error An unexpected error occurred: "<https://registry.yarnpkg.com/imagemin-webpack-plugin/-/imagemin-webpack-plugin-2.2.0.tgz>: EACCES: permission denied, mkdir '/Users/paul.yau/Library/Caches/Yarn/npm-imagemin-webpack-plugin-2.2.0-e9c6b3223c979bd50a81c9f8b3741e6f420a54e8/dist'".
acoustic-book-58772
10/04/2018, 6:31 PMdrwxr-xr-x 6 paul.yau staff 192 Oct 4 11:26 npm-imagemin-mozjpeg-7.0.0-d926477fc6ef5f3a768a4222f7b2d808d3eba568
drw-rw-rw- 3 paul.yau staff 96 Jul 27 08:57 npm-imagemin-webpack-plugin-2.2.0-e9c6b3223c979bd50a81c9f8b3741e6f420a54e8
The bottom one is the offending moduleacoustic-book-58772
10/04/2018, 6:32 PMacoustic-book-58772
10/04/2018, 6:34 PMenough-analyst-54434
10/04/2018, 6:52 PMimagemin-webpack-plugin
packaging:
$ 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:
$ 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.acoustic-book-58772
10/04/2018, 7:03 PM