-
Notifications
You must be signed in to change notification settings - Fork 23
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
Command failed with exit code 1. (checkExecSyncError) #7
Comments
same here error /xxxx/react-native/node_modules/postinstall-postinstall: Command failed. Error: Command failed: yarn run postinstall
Using |
@ds300 Hi there, sorry for waking you up, this is currently causing us a little headache - is there anything you can do about it? It's pretty difficult for us to patch it without having to maintain our own version of the package (since any patches using the |
@welljsjs - is https://github.com/simply-vat/postinstall-postinstall a stable fix? |
It's fixed the issue for us @2xAA and we haven't had any problems with it IIRC |
@ds300 it's hurting our project as well, please take a look if you'll have a chance |
@ds300 it would be great if this issue could get fixed. We've been using It's sort of strange that |
@ds300 friendly bump - the changes look very minimal - just changing simply-vat@59b0064#diff-f37164ed621e6f1db870a6fa99420258869ae02f4e9d0a3de9e75a5d7910065cR4 |
It seems like the real error is being swallowed for some reason. When I got this error running patch-packages in our CI, it was because a patch failed to be applied as the patch was considered invalid. Fixing the patch error also fixed this error. |
@sivakusayan are you still seeing this with |
@slapbox I never got this problem locally, only when running the package in some Linux box for our CI (that I'm admittedly not too familiar with the set up for). It happened when we upgraded to Node 18, along with bumping the versions of a bunch of dependencies. |
I was having the same issue, but it was caused by some no longer needed patch files, that I forgot to remove. |
What's the latest with this issue? Is there a recommended approach to getting around it? The above fork seems to now be deprecated: |
Were you able to resolve it? We're having the same problem after upgrading Node to 18 (from 16). The postinstall fails only in CI however sometimes it succeeds and sometimes fails. Strange. |
For me it was also an issue as part of the CI/CD process running Node.js 18. It looks like this package has long been abandoned with no notable activity in 5+ years and this issue open for since 2019. I was lucky to be able to patch the issue I needed |
Here is the log I get when I try to run
yarn install
,yarn add
ornode ./node_modules/postinstall-postinstall/run.js
:I've tried to debug this and I've found out that spawnSync inside
checkExecSyncError
returns an error. This causescheckExecSyncError
to return an error also. Workaround is replacingexecSync
withexec
.The text was updated successfully, but these errors were encountered: