
I am encountering a blocking issue when attempting to build the MSDyn365 Commerce Online repository from GitHub using Node.js 18.20.4 on Bash on Windows with yarn.
After ensuring a clean setup by removing node_modules, yarn.lock, and cleaning the cache, running yarn install fails with the following error:
Key Findings:
lru-cache@11.0.2 requires Node.js 20+, making it incompatible with Node.js 18.Steps to Reproduce:
Expected Behavior:
The project should successfully install dependencies and build under Node.js 18.
Actual Behavior:
Installation fails due to an incompatible dependency (lru-cache@11.0.2), which requires Node.js 20+.
Impact:
This issue prevents any development, testing, or deployment of MSDyn365 Commerce under its officially supported Node.js version.
Request for Support:
Could you please provide guidance on how to resolve this dependency conflict while ensuring the project remains compatible with Node.js 18? If lru-cache has been inadvertently upgraded in the dependency tree, can it be pinned to a compatible version?
System Information:
Thank you for your assistance.
The build issue originates from the TestCafe dependency, which has been recently updated and now requires lru-cache@11.0.2, which is not compatible with Node.js 18 (MSDyn365 Commerce's required version).
By tracing the dependency tree, it was found that:
"^1.0.0", leading to unintended upgrades.Lock TestCafe to version 3.7.1 in package.json:
Add the following under "resolutions":
Clean and reinstall dependencies:
Verify TestCafe installation:
Ensure it lists TestCafe 3.7.1 instead of a newer version.
This will prevent TestCafe from updating to versions requiring lru-cache@11.0.2, ensuring compatibility with Node.js 18 and fixing the build issue.