Closed tim80411 closed 1 year ago
Thanks for the issue, please try v2.1.1
and let me know how you get on!
@SavageCore It seems like it can not work on the inner module. But it works fine on the root project's .npmrc. Maybe we can mention this solution for pnpm users at the README.
# .npmrc
side-effects-cache=false
Enviroment
OS: Mac M1 Max Ventura 13.2.1 node: 18.14.2 package manager: pnpm 8.5.1 package version: 2.1.0
Reproduce
Context
When using pnpm to install package. Shell "ffprobe" will be download at
~/{projectPath}/node_modules/.pnpm/@ffprobe-installer+ffprobe@2.1.0/node_modules/@ffprobe-installer/darwin-arm64
As you can with the picture below, shell ffprobe permission did not change with the script postinstall
I believe that it comes from pnpm v7 change: default open 「side-effects-cache」 And here is pnpm issue reference.
Solution
Add
side-effects-cache=false
in the .npmrc should work.But it will let us losing some benefit of using pnpm.