Building on Windows

Hi all,

I am trying to build Botpress (or NLU module) with Windows 10, and it seems it mandates Visual Studio 2015, which it not publicly available.

I am interested more to build the NLU backend and views, and I guess they don’t need native code.

The error is:

Project file contains ToolsVersion=“14.0”. This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion=“4.0”. For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333.

After searching the internet, there are some suggestions, however nothing works.

  • npm install --global --production --vs2017 windows-build-tools
  • npm config set msvs_version 2017 --global
  • set VCTargetsPath=C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets

I am using:

  • Windows 10
  • VS 2017

Really appreciate your help.

Build in root

C:\use\botpress>yarn build
yarn run v1.19.1
yarn cmd build yarn run gulp build
$ C:\use\botpress\node_modules.bin\gulp build
[13:58:52] Using gulpfile C:\use\botpress\gulpfile.js
[13:58:52] Starting ‘build’…
[13:58:52] Starting ‘maybeFetchPro’…
[13:58:52] Finished ‘maybeFetchPro’ after 34 ms
[13:58:52] Starting ‘writeMetadata’…
[13:58:52] Finished ‘writeMetadata’ after 17 ms
[13:58:52] Starting ‘compileTypescript’…
[13:59:11] Finished ‘compileTypescript’ after 18 s
[13:59:11] Starting ‘buildSchemas’…
[13:59:14] Finished ‘buildSchemas’ after 3.61 s
[13:59:14] Starting ‘createOutputDirs’…
[13:59:14] Finished ‘createOutputDirs’ after 36 ms
[13:59:14] Starting ‘copyJs’…
[13:59:14] Finished ‘copyJs’ after 102 ms
[13:59:14] Starting ‘copyBinaries’…
[13:59:14] Finished ‘copyBinaries’ after 3.11 ms
[13:59:14] Starting ‘buildModuleBuilder’…
warning " > extract-text-webpack-plugin@3.0.2" has incorrect peer dependency “webpack@^3.1.0”.
warning " > ts-loader@6.0.0" has unmet peer dependency “typescript@*”.
error C:\use\botpress\build\module-builder\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: C:\use\botpress\build\module-builder\node_modules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe C:\use\botpress\build\module-builder\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:\use\botpress\build\module-builder\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 node-gyp@3.8.0
gyp info using node@12.13.0 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing “build” directory
gyp verb command configure []
gyp verb check python checking for Python executable “python2” in the PATH
gyp verb which succeeded python2 C:\use\Python27\python2.EXE
gyp verb check python version C:\use\Python27\python2.EXE -c "import sys; print "2.7.17 gyp verb check python version .%s.%s" % sys.version_info[:3];" returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 12.13.0
gyp verb command install [ ‘12.13.0’ ]
gyp verb install input version string “12.13.0”
gyp verb install installing version: 12.13.0
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: 12.13.0
gyp verb build dir attempting to create “build” dir: C:\use\botpress\build\module-builder\node_modules\node-sass\build
gyp verb build dir “build” dir needed to be created? C:\use\botpress\build\module-builder\node_modules\node-sass\build
gyp verb find vs2017 Found installation at: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
gyp verb find vs2017 - Found Microsoft.VisualStudio.Component.Windows10SDK.17763
gyp verb find vs2017 - Found Microsoft.VisualStudio.Component.VC.Tools.x86.x64
gyp verb find vs2017 - Found Microsoft.VisualStudio.VC.MSBuild.Base
gyp verb find vs2017 - Using this installation with Windows 10 SDK
gyp verb find vs2017 using installation: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: C:\use\botpress\build\module-builder\node_modules\node-sass\build\config.gypi
gyp verb config.gypi checking for gypi file: C:\use\botpress\build\module-builder\node_modules\node-sass\config.gypi
gyp verb common.gypi checking for gypi file: C:\use\botpress\build\module-builder\node_modules\node-sass\common.gypi
gyp verb gyp gyp format was not specified; forcing “msvs”
gyp info spawn C:\use\Python27\python2.EXE
gyp info spawn args [
gyp info spawn args ‘C:\use\botpress\build\module-builder\node_modules\node-gyp\gyp\gyp_main.py’,
gyp info spawn args ‘binding.gyp’,
gyp info spawn args ‘-f’,
gyp info spawn args ‘msvs’,
gyp info spawn args ‘-G’,
gyp info spawn args ‘msvs_version=2015’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘C:\use\botpress\build\module-builder\node_modules\node-sass\build\config.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘C:\use\botpress\build\module-builder\node_modules\node-gyp\addon.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘C:\Users\ahmed_ashour\.node-gyp\12.13.0\include\node\common.gypi’,
gyp info spawn args ‘-Dlibrary=shared_library’,
gyp info spawn args ‘-Dvisibility=default’,
gyp info spawn args ‘-Dnode_root_dir=C:\Users\ahmed_ashour\.node-gyp\12.13.0’,
gyp info spawn args ‘-Dnode_gyp_dir=C:\use\botpress\build\module-builder\node_modules\node-gyp’,
gyp info spawn args ‘-Dnode_lib_file=C:\Users\ahmed_ashour\.node-gyp\12.13.0\<(target_arch)\node.lib’,
gyp info spawn args ‘-Dmodule_root_dir=C:\use\botpress\build\module-builder\node_modules\node-sass’,
gyp info spawn args ‘-Dnode_engine=v8’,
gyp info spawn args ‘–depth=.’,
gyp info spawn args ‘–no-parallel’,
gyp info spawn args ‘–generator-output’,
gyp info spawn args ‘C:\use\botpress\build\module-builder\node_modules\node-sass\build’,
gyp info spawn args ‘-Goutput_dir=.’
gyp info spawn args ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\ahmed_ashour.node-gyp\12.13.0
gyp verb found first Solution file build/binding.sln
gyp verb which succeeded for msbuild C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.EXE
gyp info spawn msbuild
gyp info spawn args [
gyp info spawn args ‘build/binding.sln’,
gyp info spawn args ‘/nologo’,
gyp info spawn args ‘/p:Configuration=Release;Platform=x64’
gyp info spawn args ]
Building the projects in this solution one at a time. To enable parallel build, please add the “/m” switch.
Build started 28.11.2019 13:59:34.
Project “C:\use\botpress\build\module-builder\node_modules\node-sass\build\binding.sln” on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration “Release|x64”.
Project “C:\use\botpress\build\module-builder\node_modules\node-sass\build\binding.sln” (1) is building “C:\use\botpress\build\module-builder\node_modules\node-sass\build\binding.vcxproj.metaproj” (2) on node 1 (default targets).
Project “C:\use\botpress\build\module-builder\node_modules\node-sass\build\binding.vcxproj.metaproj” (2) is building “C:\use\botpress\build\module-builder\node_modules\node-sass\build\src\libsass.vcxproj” (3) on node 1 (default targets).
Project file contains ToolsVersion=“14.0”. This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion=“4.0”. For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333.
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.DesignTime.targets(491,5): error MSB4062: The “SetEnv” task could not be loaded from the assembly C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Build.CppTasks.Common.dll. Could not load file or assembly ‘Microsoft.Build.Utilities.Core, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [C:\use\botpress\build\module-builder\node_modules\node-sass\build\src\libsass.vcxproj]
Done Building Project “C:\use\botpress\build\module-builder\node_modules\node-sass\build\src\libsass.vcxproj” (default targets) – FAILED.
Done Building Project “C:\use\botpress\build\module-builder\node_modules\node-sass\build\binding.vcxproj.metaproj” (default targets) – FAILED.
Done Building Project “C:\use\botpress\build\module-builder\node_modules\node-sass\build\binding.sln” (default targets) – FAILED.

Build FAILED.

“C:\use\botpress\build\module-builder\node_modules\node-sass\build\binding.sln” (default target) (1) ->
“C:\use\botpress\build\module-builder\node_modules\node-sass\build\binding.vcxproj.metaproj” (default target) (2) ->
“C:\use\botpress\build\module-builder\node_modules\node-sass\build\src\libsass.vcxproj” (default target) (3) ->
(SetTelemetryEnvironmentVariables target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.DesignTime.targets(491,5): error MSB4062: The “SetEnv” task could not be loaded from the assembly C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Build.CppTasks.Common.dll. Could not load file or assembly ‘Microsoft.Build.Utilities.Core, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [C:\use\botpress\build\module-builder\node_modules\node-sass\build\src\libsass.vcxproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.69
gyp ERR! build error
gyp ERR! stack Error: msbuild failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\use\botpress\build\module-builder\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\use\botpress\build\module-builder\node_modules\node-gyp\bin\node-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” “–libsass_library=”
gyp ERR! cwd C:\use\botpress\build\module-builder\node_modules\node-sass
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1

[13:59:34] ‘buildModuleBuilder’ errored after 20 s
[13:59:34] Error: Command failed: yarn && yarn build
warning " > extract-text-webpack-plugin@3.0.2" has incorrect peer dependency “webpack@^3.1.0”.
warning " > ts-loader@6.0.0" has unmet peer dependency “typescript@*”.
error C:\use\botpress\build\module-builder\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: C:\use\botpress\build\module-builder\node_modules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe C:\use\botpress\build\module-builder\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:\use\botpress\build\module-builder\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 node-gyp@3.8.0
gyp info using node@12.13.0 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing “build” directory
gyp verb command configure []
gyp verb check python checking for Python executable “python2” in the PATH
gyp verb which succeeded python2 C:\use\Python27\python2.EXE
gyp verb check python version C:\use\Python27\python2.EXE -c "import sys; print "2.7.17 gyp verb check python version .%s.%s" % sys.version_info[:3];" returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 12.13.0
gyp verb command install [ ‘12.13.0’ ]
gyp verb install input version string “12.13.0”
gyp verb install installing version: 12.13.0
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: 12.13.0
gyp verb build dir attempting to create “build” dir: C:\use\botpress\build\module-builder\node_modules\node-sass\build
gyp verb build dir “build” dir needed to be created? C:\use\botpress\build\module-builder\node_modules\node-sass\build
gyp verb find vs2017 Found installation at: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
gyp verb find vs2017 - Found Microsoft.VisualStudio.Component.Windows10SDK.17763
gyp verb find vs2017 - Found Microsoft.VisualStudio.Component.VC.Tools.x86.x64
gyp verb find vs2017 - Found Microsoft.VisualStudio.VC.MSBuild.Base
gyp verb find vs2017 - Using this installation with Windows 10 SDK
gyp verb find vs2017 using installation: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: C:\use\botpress\build\module-builder\node_modules\node-sass\build\config.gypi
gyp verb config.gypi checking for gypi file: C:\use\botpress\build\module-builder\node_modules\node-sass\config.gypi
gyp verb common.gypi checking for gypi file: C:\use\botpress\build\module-builder\node_modules\node-sass\common.gypi
gyp verb gyp gyp format was not specified; forcing “msvs”
gyp info spawn C:\use\Python27\python2.EXE
gyp info spawn args [
gyp info spawn args ‘C:\use\botpress\build\module-builder\node_modules\node-gyp\gyp\gyp_main.py’,
gyp info spawn args ‘binding.gyp’,
gyp info spawn args ‘-f’,
gyp info spawn args ‘msvs’,
gyp info spawn args ‘-G’,
gyp info spawn args ‘msvs_version=2015’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘C:\use\botpress\build\module-builder\node_modules\node-sass\build\config.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘C:\use\botpress\build\module-builder\node_modules\node-gyp\addon.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘C:\Users\ahmed_ashour\.node-gyp\12.13.0\include\node\common.gypi’,
gyp info spawn args ‘-Dlibrary=shared_library’,
gyp info spawn args ‘-Dvisibility=default’,
gyp info spawn args ‘-Dnode_root_dir=C:\Users\ahmed_ashour\.node-gyp\12.13.0’,
gyp info spawn args ‘-Dnode_gyp_dir=C:\use\botpress\build\module-builder\node_modules\node-gyp’,
gyp info spawn args ‘-Dnode_lib_file=C:\Users\ahmed_ashour\.node-gyp\12.13.0\<(target_arch)\node.lib’,
gyp info spawn args ‘-Dmodule_root_dir=C:\use\botpress\build\module-builder\node_modules\node-sass’,
gyp info spawn args ‘-Dnode_engine=v8’,
gyp info spawn args ‘–depth=.’,
gyp info spawn args ‘–no-parallel’,
gyp info spawn args ‘–generator-output’,
gyp info spawn args ‘C:\use\botpress\build\module-builder\node_modules\node-sass\build’,
gyp info spawn args ‘-Goutput_dir=.’
gyp info spawn args ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\ahmed_ashour.node-gyp\12.13.0
gyp verb found first Solution file build/binding.sln
gyp verb which succeeded for msbuild C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.EXE
gyp info spawn msbuild
gyp info spawn args [
gyp info spawn args ‘build/binding.sln’,
gyp info spawn args ‘/nologo’,
gyp info spawn args ‘/p:Configuration=Release;Platform=x64’
gyp info spawn args ]
Building the projects in this solution one at a time. To enable parallel build, please add the “/m” switch.
Build started 28.11.2019 13:59:34.
Project “C:\use\botpress\build\module-builder\node_modules\node-sass\build\binding.sln” on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration “Release|x64”.
Project “C:\use\botpress\build\module-builder\node_modules\node-sass\build\binding.sln” (1) is building “C:\use\botpress\build\module-builder\node_modules\node-sass\build\binding.vcxproj.metaproj” (2) on node 1 (default targets).
Project “C:\use\botpress\build\module-builder\node_modules\node-sass\build\binding.vcxproj.metaproj” (2) is building “C:\use\botpress\build\module-builder\node_modules\node-sass\build\src\libsass.vcxproj” (3) on node 1 (default targets).
Project file contains ToolsVersion=“14.0”. This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion=“4.0”. For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333.
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.DesignTime.targets(491,5): error MSB4062: The “SetEnv” task could not be loaded from the assembly C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Build.CppTasks.Common.dll. Could not load file or assembly ‘Microsoft.Build.Utilities.Core, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [C:\use\botpress\build\module-builder\node_modules\node-sass\build\src\libsass.vcxproj]
Done Building Project “C:\use\botpress\build\module-builder\node_modules\node-sass\build\src\libsass.vcxproj” (default targets) – FAILED.
Done Building Project “C:\use\botpress\build\module-builder\node_modules\node-sass\build\binding.vcxproj.metaproj” (default targets) – FAILED.
Done Building Project “C:\use\botpress\build\module-builder\node_modules\node-sass\build\binding.sln” (default targets) – FAILED.

Build FAILED.

“C:\use\botpress\build\module-builder\node_modules\node-sass\build\binding.sln” (default target) (1) ->
“C:\use\botpress\build\module-builder\node_modules\node-sass\build\binding.vcxproj.metaproj” (default target) (2) ->
“C:\use\botpress\build\module-builder\node_modules\node-sass\build\src\libsass.vcxproj” (default target) (3) ->
(SetTelemetryEnvironmentVariables target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.DesignTime.targets(491,5): error MSB4062: The “SetEnv” task could not be loaded from the assembly C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Build.CppTasks.Common.dll. Could not load file or assembly ‘Microsoft.Build.Utilities.Core, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [C:\use\botpress\build\module-builder\node_modules\node-sass\build\src\libsass.vcxproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.69
gyp ERR! build error
gyp ERR! stack Error: msbuild failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\use\botpress\build\module-builder\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\use\botpress\build\module-builder\node_modules\node-gyp\bin\node-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” “–libsass_library=”
gyp ERR! cwd C:\use\botpress\build\module-builder\node_modules\node-sass
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1

at ChildProcess.exithandler (child_process.js:295:12)
at ChildProcess.emit (events.js:210:5)
at ChildProcess.EventEmitter.emit (domain.js:499:23)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)

[13:59:34] ‘build’ errored after 42 s
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Build in NLU module

C:\use\botpress\modules\nlu>yarn build
yarn run v1.19.1
$ ./node_modules/.bin/module-builder build
‘.\node_modules.bin\module-builder’ is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

After a long struggle, the reason was simply using Node 12 instead of 10.11