Running as Administrator: I’ve tried running the Command Prompt as an Administrator, but the error still happens.
Clearing the npm cache: I used npm cache clean --force and tried again, but no luck.
Deleting node_modules: I deleted the node_modules folder and ran npm install again.
Updating npm: I updated npm to the latest version, but it didn’t help.
Reinstalling Dependencies: I removed all dependencies and reinstalled them, but the error persists.
A Bit More Info:
It seems like the error is related to the deasync module, which is a dependency of generator-alfresco-adf-app. The problem seems to happen when it tries to spawn a child process.
I’m guessing this might be an issue with Windows or how Node.js interacts with child processes.
I’m using Node Version Manager (NVM) to manage my Node versions, so I’m on v18.20.7 for this project.
I think this helps