You can find out which packages require postinstall scripts and then run them manually:
$ grep postinstall node_modules/*/package.json
node_modules/esbuild/package.json: "postinstall": "node install.js"
$ cd node_modules/esbuild
$ npm run postinstall