Zoltan Kochan
Zoltan Kochan
Does it not work if you set it via `.npmrc`?
I cannot reproduce the issue. I created a package.json with this content: ```json { "scripts": { "postinstall": "touch postinstall" } } ``` `.npmrc` in the same folder: ```ini ignore-scripts=true ```...
We have fixed another issue with the same error code in v10: https://github.com/pnpm/pnpm/issues/8552
This error was sometimes caused by big values in some specific `npm_config_` env variables, which we stopped populating in pnpm v10.
Do you really need to use the `file:` protocol? Use `link:` instead. If you need to use `file:` because there are peer dependencies, then just symlink the peer dependencies too...
Is this supported by corepack?
No, that command will resolve the package manager to an exact version and write an exact version to package.json. The packageManager field currently only works with exact versions.
We could do this probably. We could even add any number of new non-prod dependencies. But I wonder how wanted this feature is. Let's keep the issue open and see...
I think Yarn has this behavior by default. Doing it with the `-T` flag might be confusing as `-T,--tilde` means `--save-prefix=~` in Yarn.
Fixed by https://github.com/pnpm/pnpm/pull/8615 in v9.12.1.