Error: EPERM: operation not permitted, unlink 'xxx.php'

Initializing generation…
Checking extension files…
Loading codebase file…
Checking master/detail relationship…
Merging extensions…
Deleting file tempus-dominus.scss…
Error: Delete file tempus-dominus.scss failed:Access to the path ‘D:\xampp\htdocs\dxc\css\tempus-dominus.scss’ is denied.
Deleting file ewfixedheadertable.js…
Error: Delete file ewfixedheadertable.js failed:Access to the path ‘D:\xampp\htdocs\dxc\js\ewfixedheadertable.js’ is denied.
Deleting file ewfixedheadertable.min.js…
Error: Delete file ewfixedheadertable.min.js failed:Access to the path ‘D:\xampp\htdocs\dxc\js\ewfixedheadertable.min.js’ is denied.
Deleting file ewfixedheadertable.min.js.map…
Error: Delete file ewfixedheadertable.min.js.map failed:Access to the path ‘D:\xampp\htdocs\dxc\js\ewfixedheadertable.min.js.map’ is denied.
Creating language file vietnamese.xml…
Creating language file english.xml…
Starting generation…
Running C:\Program Files\nodejs\node.exe (v16.6.2)…
Generating TblBangluongnhanvien.php…
node:internal/fs/utils:343
throw err;
^
Error: EPERM: operation not permitted, unlink ‘D:\xampp\htdocs\dxc\models\TblBangluongnhanvien.php’
at Object.unlinkSync (node:fs:1708:3)
at global.GenerateFile (C:\Users\Admin\AppData\Roaming\PHPMaker2022\node_modules@phpmaker\core\phpmaker.js:8:262848)
at C:\Users\Admin\AppData\Roaming\PHPMaker2022\node_modules@phpmaker\core\phpmaker.js:8:270893
at Array.map ()
at main (C:\Users\Admin\AppData\Roaming\PHPMaker2022\node_modules@phpmaker\core\phpmaker.js:8:270885)
at Object. (C:\Users\Admin\AppData\Roaming\PHPMaker2022\node_modules@phpmaker\core\phpmaker.js:8:271293)
at Module.compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module.extensions…js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
errno: -4048,
syscall: ‘unlink’,
code: ‘EPERM’,
path: ‘D:\xampp\htdocs\dxc\models\TblBangluongnhanvien.php’
}
Generation completed, please scroll up (if necessary) to check error(s) highlighted in red.

vuongduongquoc wrote:

Error: EPERM: operation not permitted, unlink ‘D:\xampp\htdocs\dxc\models\TblBangluongnhanvien.php’

The error told you that you have no permission to delete the files. Make sure the current user has read/write permissions to the folder D:\xampp\htdocs\dxc. Also make sure the files are not being used by other program.