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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Yarn is unable to process "MsDyn365.Commerce.Online" eCommerce-SDK

(0) ShareShare
ReportReport
Posted on by

After cloning the eCommerce SDK from:

GitHub - microsoft/Msdyn365.Commerce.Online at RS/10.0.30

and afterwards running the Yarn command.

I get an error from node-gyp (which I do not know what exactly is)...

It seems to catch an exception in some typescript, that is supposed to generate a configfile. 

I have tried, opening the configure.js file that is showned in the scripterror... and it seems to attempt to set an variable called cflags which is initialized as a readonly variable. Which is illegal according to typescript which also makes sence.

But how do I resolve this ? 

My Yarn version is: 1.22.19, and the node-gyp version is 7.1.2, node is 19.4.0

pastedimage1673521945880v1.png

The total output form running the Yarn command is in this attached file:

[View:/cfs-file/__key/communityserver-discussions-components-files/797/output.txt]

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    After being in contact with Microsoft, it  turns out that nodejs i got installed was version 19... it must be nodejs version 16... for this to work apparantly.

    After uninstalling nodejs and reinstalling the correct version it now succesfully runs the yarn command and also the "yarn start" command.

  • NagaChandra Profile Picture
    5 on at

    Hi,

    Actually for me it's causing heap issue on the starter template without any modificaitons from my side

  • Community Member Profile Picture
    on at

    I had alot of version issues.

    It had to be visual studio 2019

    Python had to be 3.10

    Nodejs had to be version 16

    and yarn had to be 1.22.19 (now called yarn classic I believe).

    Maybe your issue is due to one of these things being newer ?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 271 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 171 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 130 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans