Cannot Install minecraft
See original GitHub issueconst { install, getVersionList, Version} = require("@xmcl/installer/minecraft");
async function testinstall() {
const minecraft="./minecraft";
const list = await getVersionList();
const aVersion = list[0];
await install("client", aVersion, minecraft)
};
testinstall()
I just ran this code. Then an error occurred.
C:\Users\doohe\WebstormProjects\MRS-electronjs-launcher\node_modules\@xmcl\installer\minecraft.js:1
import { MinecraftFolder, Version as VersionJson } from "@xmcl/core";
^^^^^^
SyntaxError: Cannot use import statement outside a module
at Module._compile (internal/modules/cjs/loader.js:892:18)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Module.require (internal/modules/cjs/loader.js:849:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (C:\Users\doohe\WebstormProjects\MRS-electronjs-launcher\src\renderer\components\js\mchandler.js:1:45)
at Module._compile (internal/modules/cjs/loader.js:956:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
What’s wrong?
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Minecraft: Java Edition Installation Issues FAQ – Home
Firewalls and antivirus programs can sometimes cause trouble during installation. If you're having trouble installing Minecraft, you may want to temporarily ...
Read more >Minecraft not installing on Windows 11/10 PC
Restart your PC · Update your OS · Install the alternative version of Minecraft · Run Minecraft installer as administrator · Delete Mod...
Read more >Can't install Minecraft for Windows 10 - Microsoft Community
1) Try updating Store apps: https://support.microsoft.com/tr-tr/help/402625... · 2) Right click on the time and date in the far right corner of ...
Read more >[SOLVED] Minecraft Windows 10 Won't Install Problem Issue
Causes of Minecraft Windows 10 Won't Install Issue · Outdated Windows · Outdated Microsoft Store · Older caches and temporary data of the...
Read more >FIX Minecraft Launcher Not Downloading & Installing On ...
Minecraft Launcher Not Installing On Windows PCIn this video, I will be ... or installing this is how you can hopefully resolve the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/Team-IF/MRS-electronjs-launcher/blob/vue/package.json#L60 PLZ see vue branch
nvm, I managed to fix it. I have, however, another error which is caused by
getVersionList
: code:error: