This has been happening for a while, error messages:
fatal: 'submodule' appears to be a git command, but we were not
able to execute it. Maybe git-submodule is broken?
npm ERR! code ELIFECYCLE
npm ERR! errno 128
npm ERR! gutenberg@4.1.0 mobile-submodule-update: `git submodule update --init --recursive`
npm ERR! Exit status 128
npm ERR!
npm ERR! Failed at the gutenberg@4.1.0 mobile-submodule-update script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! [...]\AppData\Roaming\npm-cache\_logs\2018-10-27T09_52_58_906Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 128
npm ERR! gutenberg@4.1.0 preinstall: `npm run mobile-submodule-update`
npm ERR! Exit status 128
npm ERR!
npm ERR! Failed at the gutenberg@4.1.0 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
It is triggered by these two lines in package.json:
"preinstall": "npm run mobile-submodule-update",
"postinstall": " npm run mobile-install && npm run check-licenses && npm run build:packages",
Removing them allows npm install to finish successfully.
The problem now is worse as Gutenberg gets build every time WP gets build, and Gutenberg's package.json is freshly downloaded from Github (there is no chance to remove the above lines).
I'm not sure if the mobile submodule is meant to be built or to be run on Windows (Gutenberg seems to be working properly without it), but this currently prevents building of WP 5.0.
This has been happening for a while, error messages:
It is triggered by these two lines in package.json:
Removing them allows
npm installto finish successfully.The problem now is worse as Gutenberg gets build every time WP gets build, and Gutenberg's
package.jsonis freshly downloaded from Github (there is no chance to remove the above lines).I'm not sure if the
mobilesubmodule is meant to be built or to be run on Windows (Gutenberg seems to be working properly without it), but this currently prevents building of WP 5.0.