Electron.net: Cannot find Module 'detect-port'

Created on 6 Apr 2018  路  2Comments  路  Source: ElectronNET/Electron.NET

I just found this project (and Electron in general) and find it could be really great with a legacy application migration we're planning... and we're all .Net developers which makes this even better.

The trouble I have is I'm unable to run an executable on Windows.

I'm able to start the app through dotnet electronize start. that works just fine.
I'm using the command dotnet electronize /target win to generate the executable, and I get prompted with an error: "Cannot find module 'detect-port'". The error has an ok button, and when I click it nothing happens next. Also - the exe remains running which I didn't noticed until I had plenty running.

Thanks.

help wanted question

Most helpful comment

run 'npm install' in YourProject > bin > desktop > YourProject.Host-win32-x64 > resources > app
That fixed the problem in my case but I'm looking for a better solution

All 2 comments

run 'npm install' in YourProject > bin > desktop > YourProject.Host-win32-x64 > resources > app
That fixed the problem in my case but I'm looking for a better solution

We use in the background the electron-packager.. and I got the same problem with native Electron..
I don麓t know what is the best solution here.. we can try to execute "npm install" after the packaging.. but that is a workaround, and I dont think that is a good way..

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zlspjp picture zlspjp  路  5Comments

cdespinosaagmx picture cdespinosaagmx  路  3Comments

litch0 picture litch0  路  4Comments

iqmeta picture iqmeta  路  3Comments

GregorBiswanger picture GregorBiswanger  路  4Comments