New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: spawn E2BIG when running postinstall scripts #6106
Comments
Could you provide a minimal repo to reproduce this issue, I just tried it with the following project:
seems postinstall works find on pnpm v7.27.0: |
yes, I've managed to boil it down to a lock file with the following packages:
I also noticed that I can only reproduce it on linux, not on macOS. I have attached a minimal repo to reproduce. If you use the |
My colleague can reproduce it on his linux machine just with "@angular-devkit/build-angular": "^13.3.0",
"@angular-devkit/core": "^13.3.0", and no lockfile |
@zkochan any update on this issue? |
+1 for this, it affects our production workload :(((( Could you please take a look at it? |
Adding my vote for this. It's causing some serious disruptions in our production workflow. Mind giving it a look? |
When upgrading from version 7.18.2 to 7.19.0,
pnpm install
errors out when running the postinstall scripts with the following error:It doesn't seem to matter which postinstall script is run, any from any dependency or our own one will suffice.
Our .npmrc file is as follows
We need node-linker=hoisted as we have some angular projects in our mono-repo. Unsetting this seems to fix the problem but breaks the application builds.
These to pull requests seem that they might be related (included in the 7.19 release):
node-linker
is set tohoisted
#5795pnpm version: 7.19.0 and upwards
Additional information:
node -v
prints: 16.17.1Linux e545ebd99b57 4.19.0-17-amd64 #1 SMP Debian 4.19.194-1 (2021-06-10) x86_64 x86_64 x86_64 GNU/Linux
)The text was updated successfully, but these errors were encountered: