[PR #46] Use electron that exist in current path #1072

Open
opened 2026-01-29 16:57:05 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/ElectronNET/Electron.NET/pull/46

State: closed
Merged: Yes


bash: line 1: electron: command not found error has occurred in my env(macOSX 10.12.6, use zsh)

$ dotnet electronize start
Start Electron Desktop Application...
.NET Core 向け Microsoft (R) Build Engine バージョン 15.3.409.57025
Copyright (C) Microsoft Corporation.All rights reserved.

  sample -> /Users/yamachu/Project/CSharp/sample/bin/Debug/netcoreapp2.0/osx-x64/sample.dll
  sample -> /Users/yamachu/Project/CSharp/sample/obj/Host/bin/


Start npm install...
npm WARN ElectronNET.Host@1.0.0 No description
npm WARN ElectronNET.Host@1.0.0 No repository field.


Invoke electron - in dir: /Users/yamachu/Project/CSharp/sample/obj/Host/node_modules/.bin
bash: line 1: electron: command not found


dotnet electronize start  10.04s user 1.90s system 84% cpu 14.061 total

So I changed Execute Command that called electron to use current directory's.
This change worked well in my env.

Is there any other solution?

Thanks

**Original Pull Request:** https://github.com/ElectronNET/Electron.NET/pull/46 **State:** closed **Merged:** Yes --- `bash: line 1: electron: command not found` error has occurred in my env(macOSX 10.12.6, use zsh) ``` $ dotnet electronize start Start Electron Desktop Application... .NET Core 向け Microsoft (R) Build Engine バージョン 15.3.409.57025 Copyright (C) Microsoft Corporation.All rights reserved. sample -> /Users/yamachu/Project/CSharp/sample/bin/Debug/netcoreapp2.0/osx-x64/sample.dll sample -> /Users/yamachu/Project/CSharp/sample/obj/Host/bin/ Start npm install... npm WARN ElectronNET.Host@1.0.0 No description npm WARN ElectronNET.Host@1.0.0 No repository field. Invoke electron - in dir: /Users/yamachu/Project/CSharp/sample/obj/Host/node_modules/.bin bash: line 1: electron: command not found dotnet electronize start 10.04s user 1.90s system 84% cpu 14.061 total ``` So I changed Execute Command that called electron to use current directory's. This change worked well in my env. Is there any other solution? Thanks
claunia added the pull-request label 2026-01-29 16:57:05 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#1072