I know this thread is more then a year old, but I have the same problem.
Error: Cannot find module 'C:\Users\jvis01\OneDrive - Damen Shipyards\Desktop\Pi & Node Red Stuff\ESP32\Red'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:780:15)
at Function.Module._load (internal/modules/cjs/loader.js:685:27)
at Function.Module.runMain (internal/modules/cjs/loader.js
at internal/main/run_main_module.js:17:11 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Building Flowcode1 ...
'"C:\Users\jvis01\.espressif\tools\idf-eclipse\export.bat"' is not recognized as an internal or external command,
operable program or batch file.
'idf.py' is not recognized as an internal or external command,
operable program or batch file.
Build Failed
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ESP\Batch\esp32_build.bat reported error code 0x1
Autoclose turned off
FINISHED
When I open the file my self, it is opened in Windows CMD.
Any suggestions ?