Unreal Engine and Azure Digital Twins integration demo - step 3

Robert Doe 51 Reputation points

Hi, I'm having problems with Step 3 'Simulate Devices'. Have used GIT in Windows CLI to clone 'mock-devices' and 'azure-digital-twins-unreal-integration' to my root folder C:\users\rober. Have copied hvac.ts, index.ts, smartbinary.ts files between as instructed. Changed path to src/client (incidentally, the copied code attaches client to npm), then > npm ci && npm run build. The app doesn't build. Can you assist?

Expected/desired behavior

Run/build app  

OS and Version?

Windows 11 Pro  


Azure Digital Twins
Azure Digital Twins
An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
217 questions
{count} votes

Accepted answer
  1. AshokPeddakotla-MSFT 26,796 Reputation points

    @Robert Doe Adding answer here for reference from the Github.

    It looks like the root of this issue is to do with a Dependency on the Simulator node-sass which uses the node-gyp package to compile various parts of the Simulator. It is expecting Python2.7 and VS 2017 C++ Tools to be installed and available somewhere on the path (or in the directories eg C:/Python27 or the VS default install dir)

    As a workaround for now, the following should suffice:

    Install Python2.7 (https://www.python.org/download/releases/2.7/)
    Confirm VS 2017 Visual C++ Build tools is installed (This can be found at: https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=15)
    Re-run the command npm ci && npm run build

    Let me know if this functions for you! I replicated this on a Virtual Machine and these were the steps required. I'll close off this issue in 2 weeks If I don't hear back.

    Future fixes should remove the simulators dependency on node-sass as this has now been deprecated per: https://www.npmjs.com/package/node-sass. Will look into Simulators' build and consider if a PR is required to remove this deprecated dependency.

    If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful