You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd $(mktemp -d)
wget https://registry.npmjs.org/pngjs/-/pngjs-6.0.0.tgz
tar xf *.tgz --warning=no-timestamp --warning=no-unknown-keyword --no-same-owner --no-same-permissions --delay-directory-restore
stat -c%a package/
# 644
chmod -R +wX package/
stat -c%a package/
# 755
fix
1. add more arguments to tar xf "$fn" --warning=no-timestamp
for example tar xf "$fn" --warning=no-timestamp --warning=no-unknown-keyword --no-same-owner --no-same-permissions --delay-directory-restore
2. after tar xf run chmod -R +X "${sourceRoot}" to add the executable flag on all directories. this can be merged with chmod -R +w "${sourceRoot}" to chmod -R +wX "${sourceRoot}"
The text was updated successfully, but these errors were encountered:
this fails in unpackPhase, because the
lib/
folder in https://registry.npmjs.org/pngjs/-/pngjs-6.0.0.tgz has mode 0444, but should have mode 0555when the executable flag is missing on a directory, its contents cannot be listed, which gives the
Cannot open: Permission denied
errorswhy
fix
1. add more arguments to
tar xf "$fn" --warning=no-timestamp
for example
tar xf "$fn" --warning=no-timestamp --warning=no-unknown-keyword --no-same-owner --no-same-permissions --delay-directory-restore
2. after
tar xf
runchmod -R +X "${sourceRoot}"
to add the executable flag on all directories. this can be merged withchmod -R +w "${sourceRoot}"
tochmod -R +wX "${sourceRoot}"
The text was updated successfully, but these errors were encountered: