You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version:github:castlabs/electron-releases#25.0.0-beta.4+wvcus Electron Forge Version: 6.1.1 Yarn Version: 1.22.19 Node Version: v16.14.0 OS: Windows 10
This is the error that started me looking into the problem:
An unhandled exception has occurred inside Forge:
spawn C:\git\Trigram\canopy-app\node_modules\electron\dist\Electron.app\Contents\MacOS\Electron ENOENT
Error: spawn C:\git\Trigram\canopy-app\node_modules\electron\dist\Electron.app\Contents\MacOS\Electron ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
This is very wrong since it's giving an MacOS path on Windows 10 (I know, I know, I'm old).
This was the state of the electron folder and it's path.txt:
Also noteworthy is that there is no dist folder there which is a problem and I suspect means that the install.js was run on another machine.
I managed to fix this by switching into the electron folder, deleting the path.txt file, and manually running node install.js:
Version:
github:castlabs/electron-releases#25.0.0-beta.4+wvcus
Electron Forge Version: 6.1.1
Yarn Version: 1.22.19
Node Version: v16.14.0
OS: Windows 10
This is the error that started me looking into the problem:
This is very wrong since it's giving an MacOS path on Windows 10 (I know, I know, I'm old).
This was the state of the electron folder and it's path.txt:
![image](https://private-user-images.githubusercontent.com/22156330/244396006-fca93dc1-90fa-49b9-a7d6-c0b87b88a334.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxMDc3NTMsIm5iZiI6MTcyNjEwNzQ1MywicGF0aCI6Ii8yMjE1NjMzMC8yNDQzOTYwMDYtZmNhOTNkYzEtOTBmYS00OWI5LWE3ZDYtYzBiODdiODhhMzM0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDAyMTczM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlmNTE3OWMzMTJjM2UwN2RjNDEyMmI2YmFlYWU5MGQ4ZDg5MGU4MjA0Mjk0MDRkNDcwOWNhMmVkMDM3ODdkYmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.quHoDOdYFBtM5P5nWVjrx9c5G9tyvv7WTrHnI6Q0umY)
Also noteworthy is that there is no
dist
folder there which is a problem and I suspect means that the install.js was run on another machine.I managed to fix this by switching into the electron folder, deleting the path.txt file, and manually running
node install.js
:Afterwards the folder looks like this:
![image](https://private-user-images.githubusercontent.com/22156330/244397146-65a75dd5-e31a-4c00-931c-c34f5aeadf0b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxMDc3NTMsIm5iZiI6MTcyNjEwNzQ1MywicGF0aCI6Ii8yMjE1NjMzMC8yNDQzOTcxNDYtNjVhNzVkZDUtZTMxYS00YzAwLTkzMWMtYzM0ZjVhZWFkZjBiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDAyMTczM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ3MWI1Yzg3N2RlYjRlNTBiNzc5ZTI4MzQ1ODY3NDkzNDM0YTBlYzUxYmM3MjVhOGNlODhlNDA0ODZkZWM2NzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.2HXua5XCfa5vgf17oN4xW17Se7XkjDh1Fg4wUf1TV6E)
And the dist folder is now populated.
I hope the detail makes this easier to find and if nothing else I hope it provides better work around steps for others facing this problem.
Cheers!
The text was updated successfully, but these errors were encountered: