how to correct this error? i am making the switch from phpmaker 2018 to phpmaker 2021Generating Colloquifamiliari.php…
Generating Familiari.php…
Generating composer.json…
“php” non è riconosciuto come comando interno o esterno,
un programma eseguibile o un file batch.
child_process.js:655
throw err;
^
Error: Command failed: php -v
“php” non ´+¢ riconosciuto come comando interno o esterno,
un programma eseguibile o un file batch.
at checkExecSyncError (child_process.js:616:11)
at execSync (child_process.js:652:15)
at global.PhpVersion (C:\Program Files (x86)\PHPMaker 2021\node\node_modules\phpmaker\phpmaker.js:7:352716)
at global.IsPhp73 (C:\Program Files (x86)\PHPMaker 2021\node\node_modules\phpmaker\phpmaker.js:7:352838)
at eval (eval at compile (C:\Program Files (x86)\PHPMaker 2021\node\node_modules\phpmaker\phpmaker.js:7:6230), :38:17)
at o (C:\Program Files (x86)\PHPMaker 2021\node\node_modules\phpmaker\phpmaker.js:7:6447)
at global.GenerateFile (C:\Program Files (x86)\PHPMaker 2021\node\node_modules\phpmaker\phpmaker.js:7:351732)
at C:\Program Files (x86)\PHPMaker 2021\node\node_modules\phpmaker\phpmaker.js:7:359742
…
Generation completed, please scroll up (if necessary) to check error(s) highlighted in red.
- Read How do I add my PHP directory to the PATH on Windows?.
- Read Composer, Composer uses PHP to execute, so you need to add your PHP directory to the PATH on Windows. When you install Composer, you might have skipped the step of selecting the PHP processor on your PC, so the PHP path on your PC is not properly set up.
1 Like