I had a problem. I got an error after compiling JS.
Probably because I'm holding a flarum on the disk of
D: and not the system
C:. I use the windows system.
'node_modules' is not recognized as an internal or external command,
operable program or batch file.
NPM did not run
So I decided to fix it myself.
I changed that line to below and it worked.
$webpackOutput = shell_exec("cd $path && $path/node_modules/.bin/webpack --mode development --config node_modules/flarum-webpack-config/index.js 2>&1");
I don't know if you shouldn't do the same with the
--config on the same line, but I doubt it.
Anyway, I'm counting on the next release soon to correct this error. I hope I helped someone else with this 😉