Error: ENOENT: no such file or directory

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
aspsteve
User
Posts: 52

Error: ENOENT: no such file or directory

Post by aspsteve »

See below error we are now encountering after updating our application to ASP.NET Maker 2022.4

Initializing generation...
Checking extension files...
Loading codebase file...
Checking master/detail relationship...
Merging extensions...
Creating language file english.xml...
Starting generation...
Running C:\Program Files\nodejs\node.exe (v16.15.0)...
node:internal/fs/utils:345
throw err;
^
Error: ENOENT: no such file or directory, scandir 'C:\Users\Administrator\AppData\Roaming\ASPNETMaker2022\node_modules\@aspnetmaker\aspnet2022\src\'
at Object.readdirSync (node:fs:1405:3)
at global.GetGenerateFiles (C:\Users\Administrator\AppData\Roaming\ASPNETMaker2022\node_modules\@aspnetmaker\core\aspnetmaker.js:9:120647)
at main (C:\Users\Administrator\AppData\Roaming\ASPNETMaker2022\node_modules\@aspnetmaker\core\aspnetmaker.js:9:129922)
at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\ASPNETMaker2022\node_modules\@aspnetmaker\core\aspnetmaker.js:9:130336)
at Module.compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module.
extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47 {
errno: -4058,
syscall: 'scandir',
code: 'ENOENT',
path: 'C:\\Users\\Administrator\\AppData\\Roaming\\ASPNETMaker2022\\node_modules\\@aspnetmaker\\aspnet2022\\src\\'
}
Error(s) occurred. Compilation of .scss files skipped.
Generation completed with error(s), please scroll up (if necessary) to check error(s) highlighted in red.


MichaelG
User
Posts: 1095

Post by MichaelG »

Delete the folder 'C:\Users\Administrator\AppData\Roaming\ASPNETMaker2022\' manually. Restart ASP.NET Maker, make sure you are online and have updated to the latest template, then try again.


Post Reply