Failed to get PHP version

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
iggabz
User
Posts: 77

Failed to get PHP version

Post by iggabz »

Good day,

I have this error

node:child_process:902
    throw err;
    ^
<ref *1> Error: spawnSync C:\WINDOWS\system32\cmd.exe EPERM
    at Object.spawnSync (node:internal/child_process:1111:20)
    at spawnSync (node:child_process:814:24)
    at execSync (node:child_process:894:15)
    at global.PhpVersion (C:\Users\Madox\AppData\Roaming\PHPMaker2023\node_modules\@phpmaker\core\phpmaker.js:8:270669)
    at global.IsPhp8 (C:\Users\Madox\AppData\Roaming\PHPMaker2023\node_modules\@phpmaker\core\phpmaker.js:8:270842)
...

i have updated the template and still got this error.

any work around on this?


arbei
User
Posts: 9384

Post by arbei »

Make sure you have installed PHP on your PC and add the path to the Windows PATH environment variable, see Composer.


iggabz
User
Posts: 77

Post by iggabz »

thank you for this.


Post Reply