Q:
Your team is working on a Dynamics 365 Commerce project and has encountered a 'JavaScript heap out of memory' build error.
You need to increase the Node memory size to prevent this error during the build process.
How should you specify the environment variable?
-
A
Update the 'yarn msdyn365 pack' command in the PowerShell build task to allocate more memory.
-
B
Install a newer version of Node.js that has increased memory capabilities.
-
C
Manually set the environment variable on each developer's machine before building.
-
D
Modify the 'build' script in the package.json file to include '--max_old_space_size4096'.
D