[wp-trac] [WordPress Trac] #64874: `postinstall` scripts are failing in some environments

WordPress Trac noreply at wordpress.org
Tue Mar 17 15:25:20 UTC 2026


#64874: `postinstall` scripts are failing in some environments
------------------------------+---------------------
 Reporter:  desrosj           |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  7.0
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+---------------------

Comment (by desrosj):

 One option to fix this is to remove the `postinstall` scripts entirely.
 `gutenberg:verify` is the first Grunt task when `build` is run, which
 ensures the `gutenberg` directory is present and contains the files for
 the commit SHA value pinned in the `package.json` file.

 However, a potential downside of this approach is that the files will not
 be present locally unless someone runs a `build` command. In my opinion,
 this is reasonable because there are other files that must also be built
 for WP to be usable (this is [https://github.com/WordPress/wordpress-
 develop/?tab=readme-ov-file#development-environment-commands documented in
 the README.md], though probably deserves it's own section.

 Other solutions I have found so far do not seem to work across platforms.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64874#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list