mindcraft icon indicating copy to clipboard operation
mindcraft copied to clipboard

Cannot find package 'yargs'

Open Fakinha15 opened this issue 1 year ago • 2 comments

image

Im getting this error mensage...someone can help me please?

Fakinha15 avatar Sep 18 '24 00:09 Fakinha15

#126

This means that the Node.js runtime tried to import the yargs package but couldn't find it in your project. This usually happens when the package isn't installed or is missing from the project's node_modules directory.

yargs package should be listed in the package.json file under the dependencies section. This file tells Node.js which packages are required for the project.

Solution 1: Make sure you're in the correct directory where package.json is located (mindcraft-main...the second one) 2: Run the following command to install all dependencies: npm install

Let me know if this resolves the issue

StianJosok avatar Sep 18 '24 09:09 StianJosok

That outputs a problem: npm error code ENOENT npm error syscall spawn git npm error path git npm error errno -4058 npm error enoent An unknown git error occurred npm error enoent This is related to npm not being able to find a file. npm error enoent

PuroOfficial avatar Apr 04 '25 01:04 PuroOfficial

This means you have no git installed make sure to download it from here: https://git-scm.com/downloads/win

Vaten0x avatar Aug 11 '25 05:08 Vaten0x

To prevent future issues, download https://mindcraft-ce.com

Sweaterdog avatar Aug 11 '25 07:08 Sweaterdog