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?
Question Info
Choose the Best Option
Click any option to instantly check if you're correct.
Explanation
Option D is correct because modifying the 'build' script in the package.json file with '--max_old_space_size4096' is the recommended way to increase the Node memory size. Option A is incorrect as the 'yarn msdyn365 pack' command does not control memory allocation. Option B is incorrect because simply installing a newer version of Node.js does not address the memory allocation issue. Option C is incorrect as manually setting the environment variable on each developer's machine is not scalable or reliable.
Want to remember what you got wrong?
Create a free account in seconds to track your score, revisit mistakes and continue X++ Programming Language where you left off.
- Save your progress & streak
- Topic-wise quizzes & scores
- Bookmark tricky questions
- Printable MCQ sets
Nice — 3 questions done!
Don't lose this streak. Sign up free to save your score and pick up exactly where you stopped.
Share This Question
Challenge a friend or share with your study group.