Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
script/postinstall.sh: Fix endless loop with npm 7
`npm rebuild` started running the postinstall script after completing. This calls npm rebuild again, triggering the postinstall script again, in an endless, recursive loop. So set an environment variable "APM_ALREADY_REBUILDING" before doing npm rebuild the first time, and exit the postinstall script early if that is set, and the endless loop will be broken.
- Loading branch information