Hi, I am getting this error while generating files,
Error: Command failed: composer update -n --ansi
at genericNodeError (node:internal/errors:984:15)
at wrappedFn (node:internal/errors:538:14)
at checkExecSyncError (node:child_process:891:11)
at execSync (node:child_process:963:15)
at global.Exec (C:\Users\User\AppData\Roaming\PHPMaker2024\node_modules\@phpmaker\core\phpmaker.js:8:316156)
at global.RunComposerUpdate (C:\Users\User\AppData\Roaming\PHPMaker2024\node_modules\@phpmaker\core\phpmaker.js:8:325094)
at C:\Users\User\AppData\Roaming\PHPMaker2024\node_modules\@phpmaker\core\phpmaker.js:8:335186
at <anonymous>
at async main (C:\Users\User\AppData\Roaming\PHPMaker2024\node_modules\@phpmaker\core\phpmaker.js:8:334887) {
status: 2,
signal: null,
output: [ null, null, null ],
pid: 9636,
stdout: null,
stderr: null
}
Node.js v20.17.0
Error: Generation completed with error(s), please scroll up (if necessary) to check error(s).
and when i run code, iam getting this error
Warning: require_once(vendor/autoload.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\aca\index.php on line 24
Fatal error: Uncaught Error: Failed opening required 'vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\aca\index.php:24 Stack trace: #0 {main} thrown in C:\xampp\htdocs\aca\index.php on line 24
If you don’t know how, you may simply delete “vendor” folder (if exists) in your project folder and generate all files again. The “composer update” will be run automatically, watch the messages shown in the progress form, you should see the progress of composer update, do not ignore any errors. You can also easily google “php composer update” to find a lot of info.
Make sure you have done composer update successfully.> The “composer update” will be run automatically, watch the messages shown in the progress form, you should see the progress of composer update, > do not ignore any errors> .
Make sure you select a writable project folder, e.g. D:\MyProjectFolder, avoid C:\xxx, remote folder, OneDrive, GoogleDrive which you mau not have write permission.
Enable Composer Update when you generate, and generate all files. Do not ignore errors, post the errors you see.
Read Composer again, follow the instructions and test your PC, make sure you have installed Composer and and it is working properly.