New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug? install.js failed due to incorrect dotnet.exe path matched #12
Comments
For fixing, I changed function
|
accelazh
added a commit
to accelazh/edge-cs
that referenced
this issue
Jan 8, 2020
See Issue#12 for details of this bug * tjanczuk#12 For fixing, this patch limit `whereis` to only match file name rather than folder name.
accelazh
added a commit
to accelazh/electron-edge-js
that referenced
this issue
Mar 4, 2020
This is the same bug we found at edge-cs. So port the fix here too. For detailed bug descriptor tjanczuk/edge-cs#12 For the fix at edge-cs tjanczuk/edge-cs#13
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When installing edge-cs, which is a dependent package to my project, tools/install.js failed (see details for error message). It prevents package installation.
Why failed
In install.js, the
childProcess.spawn(dotnetPath, ..
(line#27) was not using the correctdotnetPath
.The
dotnetPath
being used wasC:\Program Files\dotnet
, which is a folder name. HoweverchildProcess.spawn
expects a executable file name, i.e.C:\Program Files\dotnet\dotnet.exe
.Digging deeper, function
whereis
allows matching folder name. My environment variable setup made it matchC:\Program Files
earlier thanC:\Program Files\dotnet
. (See details)(I was using Windows 10.)
Details & reproduce
My environemnt %PATH%
My dotnet.exe path
To reproduce. Below is the command that failed installation
The text was updated successfully, but these errors were encountered: