"dotnet electronize start"command progress occurs one error "throw errnoException(err, 'spawn');" #166

Closed
opened 2026-01-29 16:32:45 +00:00 by claunia · 6 comments
Owner

Originally created by @twtyypmb on GitHub (May 23, 2018).

"dotnet build"and "dotnet electronize init" are ok,but "dotnet electronize start"

the error info is following:
D:\electron.net-api-demos-master\ElectronNET-API-Demos\obj\Host\node_modules.bin>electron.cmd "....\main.js"
internal/child_process.js:323
throw errnoException(err, 'spawn');
^
Error: spawn UNKNOWN
at _errnoException (util.js:992:11)
at ChildProcess.spawn (internal/child_process.js:323:11)
at Object.exports.spawn (child_process.js:502:9)
at Object. (D:\electron.net-api-demos-master\ElectronNET-API-Demos\obj\Host\node_modules\electron\cli.js:7:18)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)

My environment:
os :win 7u32 sp1
vscode:VSCodeSetup-ia32-1.23.1
.net core:dotnet-sdk-2.1.200-win-x86
node version:v8.11.2
electron version:v2.0.1
electrionnet version:0.0.9
application:electron.net-api-demos

Originally created by @twtyypmb on GitHub (May 23, 2018). "dotnet build"and "dotnet electronize init" are ok,but "dotnet electronize start" the error info is following: D:\electron.net-api-demos-master\ElectronNET-API-Demos\obj\Host\node_modules\.bin>electron.cmd "..\..\main.js" internal/child_process.js:323 throw errnoException(err, 'spawn'); ^ Error: spawn UNKNOWN at _errnoException (util.js:992:11) at ChildProcess.spawn (internal/child_process.js:323:11) at Object.exports.spawn (child_process.js:502:9) at Object.<anonymous> (D:\electron.net-api-demos-master\ElectronNET-API-Demos\obj\Host\node_modules\electron\cli.js:7:18) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Function.Module.runMain (module.js:693:10) My environment: os :win 7u32 sp1 vscode:VSCodeSetup-ia32-1.23.1 .net core:dotnet-sdk-2.1.200-win-x86 node version:v8.11.2 electron version:v2.0.1 electrionnet version:0.0.9 application:electron.net-api-demos
Author
Owner

@robertmuehsig commented on GitHub (May 23, 2018):

It seems we are not compatible with .NET Core 2.1. I will take a look this week.

@robertmuehsig commented on GitHub (May 23, 2018): It seems we are not compatible with .NET Core 2.1. I will take a look this week.
Author
Owner

@twtyypmb commented on GitHub (May 23, 2018):

the error does not occure in win7p64,i guess the reason is x86 or x64 environment?

@twtyypmb commented on GitHub (May 23, 2018): the error does not occure in win7p64,i guess the reason is x86 or x64 environment?
Author
Owner

@twtyypmb commented on GitHub (May 23, 2018):

@robertmuehsig i have tested with .net core 2.0.0,and the error still occured

@twtyypmb commented on GitHub (May 23, 2018): @robertmuehsig i have tested with .net core 2.0.0,and the error still occured
Author
Owner

@dongfo commented on GitHub (May 27, 2018):

the same problem and my devlop machine :win10 64.
vs2017 15.7.2
nodejs V8.11.2

  Error:Cannot find module '....\obj\Host\node_modules\electron\cli.js'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:191:16)
    at bootstrap_node.js:612:3
@dongfo commented on GitHub (May 27, 2018): the same problem and my devlop machine :win10 64. vs2017 15.7.2 nodejs V8.11.2 ```` Error:Cannot find module '....\obj\Host\node_modules\electron\cli.js' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Function.Module.runMain (module.js:693:10) at startup (bootstrap_node.js:191:16) at bootstrap_node.js:612:3 ````
Author
Owner

@GregorBiswanger commented on GitHub (Sep 26, 2018):

Hello @twtyypmb and @dongfo,
do you still have the problem or can find a solution?

Best,
Gregor

@GregorBiswanger commented on GitHub (Sep 26, 2018): Hello @twtyypmb and @dongfo, do you still have the problem or can find a solution? Best, Gregor
Author
Owner

@scout208 commented on GitHub (Nov 1, 2019):

Hi, I am having this issue on Windows IoT Core on Raspberry Pi.

@scout208 commented on GitHub (Nov 1, 2019): Hi, I am having this issue on Windows IoT Core on Raspberry Pi.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#166