web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Answered

Incompatibility Issue with lru-cache@11.0.2 in MSDyn365 Commerce on Node 18

(7) ShareShare
ReportReport
Posted on by 30

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:

error lru-cache@11.0.2: The engine "node" is incompatible with this module. Expected version "20 || >=22". Got "18.20.4"
error Found incompatible module.

Key Findings:

  • The project must run on Node.js 18 since MSDyn365 Commerce does not support later versions.
  • The same issue occurs even when cloning and attempting to build the original GitHub repo from Microsoft.
  • lru-cache@11.0.2 requires Node.js 20+, making it incompatible with Node.js 18.

Steps to Reproduce:

  1. Clone the MSDyn365 Commerce repo:
    git clone https://github.com/microsoft/Msdyn365.Commerce.Online.git
  2. Navigate to the directory:
    cd Msdyn365.Commerce.Online
  3. Ensure the correct Node.js version (18.20.4):
    node -v # Should output v18.20.4
  4. Clean the environment:
    yarn clean
    rm -rf node_modules yarn.lock
    yarn cache clean --force
  5. Attempt installation:
    yarn install

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:

  • Operating System: Windows 11
  • Shell: Git Bash
  • Node.js Version: 18.20.4
  • Yarn Version: 1.22.22

Thank you for your assistance.

Categories:
I have the same question (0)
  • Verified answer
    AC-12081344-0 Profile Picture
    30 on at

    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:

    • TestCafe → TestCafe Legacy API → TestCafe Hammerhead → lru-cache@11.0.2
    • Several MSDyn365 Commerce modules import TestCafe with "^1.0.0", leading to unintended upgrades.

    Quick Solution:

    1. Lock TestCafe to version 3.7.1 in package.json:
      Add the following under "resolutions":

      "resolutions": {
          "testcafe": "3.7.1",
          "testcafe-hammerhead": "24.7.2",
          "testcafe-legacy-api": "5.1.4"
      }
    2. Clean and reinstall dependencies:

      rm -rf node_modules yarn.lock
      yarn cache clean --force
      yarn install
    3. Verify TestCafe installation:

      yarn list --pattern testcafe

      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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 149 Super User 2026 Season 1

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 107 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 102 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans