
I am having trouble setting up the D365 Commerce development environment. There seems to be an issue with the versions of Node.js and node-sass. Could you tell me which versions I should install?
errormasssage
error C:\repos\Msdyn365.Commerce.Online\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: C:\repos\Msdyn365.Commerce.Online\node_modules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe C:\repos\Msdyn365.Commerce.Online\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli 'C:\\repos\\Msdyn365.Commerce.Online\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using *** Email address is removed for privacy ***
gyp info using *** Email address is removed for privacy *** | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb find Python Python is not set from command line or npm configuration
gyp verb find Python Python is not set from environment variable PYTHON
gyp verb find Python checking if "python3" can be used
gyp verb find Python - executing "python3" to get executable path
gyp verb find Python - "python3" is not in PATH or produced an error
gyp verb find Python checking if "python" can be used
gyp verb find Python - executing "python" to get executable path
gyp verb find Python - executable path is "C:\Python313\python.exe"
gyp verb find Python - executing "C:\Python313\python.exe" to get version
gyp verb find Python - version is "3.13.1"
gyp info find Python using Python version 3.13.1 found at "C:\Python313\python.exe"
gyp verb get node dir no --target version specified, falling back to host node version: 20.18.3
gyp verb command install [ '20.18.3' ]
gyp verb install input version string "20.18.3"
gyp verb install installing version: 20.18.3
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 20.18.3
gyp verb build dir attempting to create "build" dir: C:\repos\Msdyn365.Commerce.Online\node_modules\node-sass\build
gyp verb build dir "build" dir needed to be created? C:\repos\Msdyn365.Commerce.Online\node_modules\node-sass\build
gyp verb find VS msvs_version not set from command line or npm config
gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp verb find VS unknown version "undefined" found at "C:\Program Files\Microsoft Visual Studio\2022\Professional"
gyp verb find VS checking VS2019 (16.7.32413.119) found at:
gyp verb find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
gyp verb find VS - found "Visual Studio C++ core features"
gyp verb find VS - found VC++ toolset: v142
gyp verb find VS - found Windows SDK: 10.0.17763.0
gyp info find VS using VS2019 (16.7.32413.119) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp verb build/config.gypi creating config file
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack TypeError: Cannot assign to read only property 'cflags' of object '#'
gyp ERR! stack at createConfigFile (C:\repos\Msdyn365.Commerce.Online\node_modules\node-gyp\lib\configure.js:117:21)
gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
gyp ERR! System Windows_NT 10.0.22631
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\repos\\Msdyn365.Commerce.Online\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\repos\Msdyn365.Commerce.Online\node_modules\node-sass
gyp ERR! node -v v20.18.3
gyp ERR! node-gyp -v v7.1.2