Modern UI, npm getmodules error
When trying to execute the npm run getmodules command in an Acumatica project using Modern UI based on Node.js, an error occurs that is related to processes that cannot complete correctly ( See the screenshot below ).
To solve this issue, open the gulp-tools.ts file in the FrontendSources folder and add the Shell property to ensure proper execution of the command:
const cmd = spawn(command, args, { cwd, shell:true });
After making this change, follow these steps to verify the fix:
1. Save the changes to gulp-tools.ts.
2. Run the following command again:
npm run getmodules
3. Observe the output and check if the command executes successfully without errors.
By following this solution, you should be able to resolve the issue and allow npm run getmodules to function correctly.