HeliosLauncher icon indicating copy to clipboard operation
HeliosLauncher copied to clipboard

Error: Cannot not find module '@electron/remote/main'

Open kmsimproject opened this issue 2 years ago • 27 comments

image

I copied the code in sample_distribution.json as it is, created a link using the github raw, and put the link in the distromanger, and this error appears. How do I fix this?

kmsimproject avatar Sep 08 '22 10:09 kmsimproject

May you show me your package.json please?

GeekCornerGH avatar Sep 08 '22 16:09 GeekCornerGH

Did you run npm install..?

dscalzi avatar Sep 08 '22 22:09 dscalzi

Did you run npm install..?

yes

kmsimproject avatar Sep 09 '22 00:09 kmsimproject

May you show me your package.json please? { "name": "helioslauncher", "version": "1.9.0", "productName": "Helios Launcher", "description": "Modded Minecraft Launcher", "author": "Daniel Scalzi (https://github.com/dscalzi/)", "license": "UNLICENSED", "homepage": "https://github.com/dscalzi/HeliosLauncher", "bugs": { "url": "https://github.com/dscalzi/HeliosLauncher/issues" }, "private": true, "main": "index.js", "scripts": { "start": "electron .", "dist": "electron-builder build", "dist:win": "npm run dist -- -w", "dist:mac": "npm run dist -- -m", "dist:linux": "npm run dist -- -l", "lint": "eslint --config .eslintrc.json ." }, "engines": { "node": "16.x.x" }, "dependencies": { "@electron/remote": "^0.0.1", "adm-zip": "^0.5.9", "async": "^3.2.3", "discord-rpc-patch": "^4.0.1", "ejs": "^3.1.6", "ejs-electron": "^2.1.1", "electron-updater": "^4.6.5", "fs-extra": "^10.0.0", "github-syntax-dark": "^0.5.0", "got": "^11.8.3", "helios-core": "~0.1.0", "jquery": "^3.6.0", "node-stream-zip": "^1.15.0", "request": "^2.88.2", "semver": "^7.3.5", "tar-fs": "^2.1.1", "winreg": "^1.2.4" }, "devDependencies": { "electron": "^20.1.2", "electron-builder": "^23.5.0", "eslint": "^8.8.0" }, "repository": { "type": "git", "url": "git+https://github.com/dscalzi/HeliosLauncher.git" } } here

kmsimproject avatar Sep 09 '22 00:09 kmsimproject

  • i'm installed @electron/remote

kmsimproject avatar Sep 09 '22 00:09 kmsimproject

did you solve it? I have the same error

VonDefiant avatar Sep 17 '22 14:09 VonDefiant

  1. make sure that you have the right nodejs version : minimum node 16
  2. run npm i

alduish avatar Sep 17 '22 14:09 alduish

if I have a version and also execute the command and I get the same error

VonDefiant avatar Sep 17 '22 14:09 VonDefiant

image

I get this after putting the command

VonDefiant avatar Sep 17 '22 14:09 VonDefiant

image

I get this after putting the command

Not an error just a warning

drori200 avatar Sep 17 '22 14:09 drori200

running npm start gives me the error :c

image

VonDefiant avatar Sep 17 '22 14:09 VonDefiant

do node --version please

alduish avatar Sep 17 '22 15:09 alduish

there is

image

VonDefiant avatar Sep 17 '22 15:09 VonDefiant

Oh ... use another folder, reason : fuck onedrive (don't use documents folder)

alduish avatar Sep 17 '22 15:09 alduish

image

I already changed folder and I get the same

VonDefiant avatar Sep 17 '22 15:09 VonDefiant

have you modified or did anything before npm i and npm start ?

alduish avatar Sep 17 '22 15:09 alduish

just change the name of the launcher and put my git profile

VonDefiant avatar Sep 17 '22 15:09 VonDefiant

ok so should not cause problems

alduish avatar Sep 17 '22 15:09 alduish

I think it come from your environement so maybe try in a fresh vm

alduish avatar Sep 17 '22 15:09 alduish

ok thanks i will try

VonDefiant avatar Sep 17 '22 15:09 VonDefiant

I already left thank you very much image

VonDefiant avatar Sep 17 '22 15:09 VonDefiant

npm i와 npm이 시작되기 전에 수정했거나 아무 것도하지 않았습니까?

i'm was deleted package lock json

kmsimproject avatar Sep 18 '22 12:09 kmsimproject

I think it come from your environement so maybe try in a fresh vm

how to fix?

kmsimproject avatar Sep 18 '22 12:09 kmsimproject

@VonDefiant could you explain what caused your issue and how to fix it, for anyone else having this? I have never had this issue so I can't really comment.

dscalzi avatar Sep 18 '22 19:09 dscalzi

@dscalzi reinstall the node JS and select the option that marks in the image after that I tried to execute the command again and it worked image

VonDefiant avatar Sep 18 '22 21:09 VonDefiant

It doesn't work even if I reinstall it.

kmsimproject avatar Sep 19 '22 12:09 kmsimproject

You should install only npm package manager and check the box to install all tools, that worked for me

VonDefiant avatar Sep 19 '22 13:09 VonDefiant