I've noticed today that package.json files in the examples folder require as dependency an ancient version of minecraft-protocol (^0.20.3). The way it is now, running npm install from each example folder will result in error.
Instead, in client_forge folder, the package.json file should require just minecraft-protocol-forge:
Now examples work after I run npm install in the root folder of the repo, and then again in the example folder I want to use. I'd open PR if needed, but I hardly know anything about npm and package.json, so wanted to ask your opinion before doing anything.
@rom1504, happy holidays!
I've noticed today that
package.json
files in theexamples
folder require as dependency an ancient version ofminecraft-protocol
(^0.20.3). The way it is now, runningnpm install
from each example folder will result in error.Instead, in
client_forge
folder, thepackage.json
file should require justminecraft-protocol-forge
:(It also needs
minecraft-protocol
andprotodef
, but these packages are already required byminecraft-protocol-forge
).In
mineflayer_forge
folder:And in
mineflayer_forge_simplelogin
folder:Now examples work after I run
npm install
in the root folder of the repo, and then again in the example folder I want to use. I'd open PR if needed, but I hardly know anything about npm and package.json, so wanted to ask your opinion before doing anything.