-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[BUG] postinstall scripts not executed during npm install
#2467
Comments
Duplicate of #2194? |
@ljharb not really because here it is not about global packages, or? but yes maybe related :-) |
Are you sure the script isn’t being executed? All output of postinstall scripts is suppressed in npm 7 unless the script fails. |
Yes we are sure because many things happen there in the example of the above case and nothing of this is done |
Hey @AlCalzone, this does look to be like a duplicate (ie. potentially you are just not seeing output when scripts are run). We just tested this to see if postinstall scripts are working & they seem to be. I've posted a comment back here for some other context (ie. running with the Let us know if you think your scripts still aren't being run as of |
@darcyclarke It seems like the underlying issue is something different. Our postinstall script does indeed run, but it modifies package.json, so we can install additional dependencies dynamically in the next install step. This used to work in npm6, but now the changes get overwritten later, causing the followup installation steps to be skipped. |
Current Behavior:
postinstall script not executed
Expected Behavior:
postinstall script should be executed.
Steps To Reproduce:
/opt/iobroker
, enter itnpm i iobroker@latest
as rootEnvironment:
The text was updated successfully, but these errors were encountered: