Closed Burstyx closed 2 years ago
The installer will try to install forge from files.minecraftforge.net, but it seems the forge's https is expired.
I suggest you to create an agent with rejectUnauthorized: false
to handle all downloads.
const https = require('https')
// this is for https
const agent = https.Agent({ rejectUnauthorized: false, /* Please also set other options like max sockets here. */ })
installForgeTask(forgeVersion, location, { agents: { https: agent } })
The installer will try to install forge from files.minecraftforge.net, but it seems the forge's https is expired.
I suggest you to create an agent with
rejectUnauthorized: false
to handle all downloads.const https = require('https') // this is for https const agent = https.Agent({ rejectUnauthorized: false, /* Please also set other options like max sockets here. */ }) installForgeTask(forgeVersion, location, { agents: { https: agent } })
Thanks now it work but i have a new problem ;(
i enter this version of forge but i don't know why but the module search in the wrong folder :/
Good the problem is gone I just have to update Electron to the latest version thanks ^^
I have a problem when i want to download Forge with installForgeTask(). I have
Here is my code:![image](https://user-images.githubusercontent.com/76739818/135672982-4a88e509-d9eb-4da3-bec9-158c00a63087.png)
When i launch the electron app i have these errors:![image](https://user-images.githubusercontent.com/76739818/135673562-84ead5d7-260b-4168-9c6c-a7edc462a2b0.png)
I use these dependencies:![image](https://user-images.githubusercontent.com/76739818/135673183-18c495b6-3bbd-4627-9c83-0accb6477c1c.png)
I don't know why this error append. I'm afraid we can't fix this error because apparently the certificate has expired