PrismarineJS / mineflayer

Create Minecraft bots with a powerful, stable, and high level JavaScript API.
https://prismarinejs.github.io/mineflayer/
MIT License
4.87k stars 894 forks source link

Cannot read property 'JumpBoost' of undefined #1276

Closed IkeVoodoo closed 4 years ago

IkeVoodoo commented 4 years ago

Hello! I know this issue appened in the past (finished reading "Cannot read property 'id' of undefined"), but at the end, it said it was fixed. apparently its not

here is my error:

C:\MinecraftBot\node_modules\prismarine-physics\index.js:579 this.jumpBoost = bot.entity.effects[mcData.effectsByName.JumpBoost.id] ? bot.entity.effects[mcData.effectsByName.JumpBoost.id].amplifier + 1 : 0 ^

TypeError: Cannot read property 'JumpBoost' of undefined at new PlayerState (C:\MinecraftBot\node_modules\prismarine-physics\index.js:579:62) at Timeout.doPhysics [as _onTimeout] (C:\MinecraftBot\node_modules\mineflayer\lib\plugins\physics.js:61:32) at listOnTimeout (internal/timers.js:549:17) at processTimers (internal/timers.js:492:7)

why does this happen? note: i got noting fancy in the code, just a login and a on chat

TheDudeFromCI commented 4 years ago

It's jump_boost not JumpBoost

When working with anything by name, you want to use the namespaced version. Like oak_log or silk_touch

IkeVoodoo commented 4 years ago

wait,

var bot = mineflayer.createBot({ host: host, username: username, password: password, version: version });

bot.on('chat', function(username, message) { if (username === bot.username) return; console.log(message); });

i am not using any effects..

TheDudeFromCI commented 4 years ago

Oh, I see. For future issues, please use the question template. Can you place specify your Mineflayer version, Minecraft version, and server type?

Also, run npm update --depth 999 to make sure everything is correctly up to date.

IkeVoodoo commented 4 years ago

Mineflayer version is latest, minecraft version 1.16(+), spigot/bukkit

btw, npm update --depth 999 returns:

`npm ERR! code EPERM npm ERR! syscall rename npm ERR! path C:\MinecraftBot\node_modules\prismarine-windows\package.json.2135085328 npm ERR! dest C:\MinecraftBot\node_modules\prismarine-windows\package.json npm ERR! errno -4048 npm ERR! Error: EPERM: operation not permitted, rename 'C:\MinecraftBot\node_modules\prismarine-windows\package.json.2135085328' -> 'C:\MinecraftBot\node_modules\prismarine-windows\package.json' npm ERR! [OperationalError: EPERM: operation not permitted, rename 'C:\MinecraftBot\node_modules\prismarine-windows\package.json.2135085328' -> 'C:\MinecraftBot\node_modules\prismarine-windows\package.json'] { npm ERR! cause: [Error: EPERM: operation not permitted, rename 'C:\MinecraftBot\node_modules\prismarine-windows\package.json.2135085328' -> 'C:\MinecraftBot\node_modules\prismarine-windows\package.json'] { npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'rename', npm ERR! path: 'C:\MinecraftBot\node_modules\prismarine-windows\package.json.2135085328', npm ERR! dest: 'C:\MinecraftBot\node_modules\prismarine-windows\package.json' npm ERR! }, npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'rename', npm ERR! path: 'C:\MinecraftBot\node_modules\prismarine-windows\package.json.2135085328', npm ERR! dest: 'C:\MinecraftBot\node_modules\prismarine-windows\package.json' npm ERR! } npm ERR! The operation was rejected by your operating system. npm ERR! It's possible that the file was already in use (by a text editor or antivirus), npm ERR! or that you lack permissions to access it. npm ERR! npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\admin\AppData\Roaming\npm-cache_logs\2020-08-24T14_23_41_398Z-debug.log`

(my pc's username is admin, never bothered to change)

Karang commented 4 years ago

1.16(+) is not a version, which one is it ? 1.16.1, 1.16.2 ? (btw 1.16.2 is not supported yet)

The npm error is clear: you don't have the permission to write in that directory. Run as administrator, or fix your permissions.

IkeVoodoo commented 4 years ago

1.16(+) meaning 1.16 and optionally above, i am the only user on the machine, i have administrator rights. and i do in fact, have permission to write to the directory, Idk why it happens tough

TheDudeFromCI commented 4 years ago

Like @Karang said above, Mineflayer will break on 1.16.2 servers, so make sure the server is 1.16 or 1.16.1 only.

IkeVoodoo commented 4 years ago

The server is 1.16.1, but it does this error on any version that i try on, i tried a 1.8.9 server and a 1.12.2 server, same error

IdanHo commented 4 years ago

It's jump_boost not JumpBoost

When working with anything by name, you want to use the namespaced version. Like oak_log or silk_touch

namespaced names of effects are in EffectName format, not effect_name, just a mojang quirk

TheDudeFromCI commented 4 years ago

@IkeVoodoo The issue is most likely because of Windows permission issues. You apparently do not have permission to write to the directory for some reason. It could mean that files are already in use. Make sure that no programs are running that are editing or using that directory.

@IdanHo Oh, that's pretty weird. Makes sense though. Ah, Mojang. Gotta love the consistency.

IkeVoodoo commented 4 years ago

okay, so. i closed VS Code (oops) and ran the command from cmd, it says "Unsupported protocol version 1.16.1", i will try with a 1.8.9 server, and a 1.12.2 server

TheDudeFromCI commented 4 years ago

Run the update command before launching your bot.

IkeVoodoo commented 4 years ago

Okay, so. It logged in the 1.8.9 server, but like 10 seconds after i got the jump boost error again (it succesfully logged in)

TheDudeFromCI commented 4 years ago

Did you update?

IkeVoodoo commented 4 years ago

Yes, i did

Karang commented 4 years ago

can you run npm ls and give the result ?

IkeVoodoo commented 4 years ago
+-- mineflayer@2.28.1
| +-- minecraft-data@2.67.0 extraneous
| +-- minecraft-protocol@1.13.0
| | +-- buffer-equal@1.0.0
| | +-- debug@4.1.1
| | | `-- ms@2.1.2
| | +-- endian-toggle@0.0.0
| | +-- lodash.get@4.4.2
| | +-- lodash.merge@4.6.2
| | +-- minecraft-data@2.58.0
| | +-- node-rsa@0.4.2
| | | `-- asn1@0.2.3
| | +-- prismarine-nbt@1.3.0 deduped
| | +-- protodef@1.8.0 deduped
| | +-- readable-stream@3.6.0
| | | +-- inherits@2.0.4
| | | +-- string_decoder@1.3.0
| | | | `-- safe-buffer@5.2.1
| | | `-- util-deprecate@1.0.2
| | +-- uuid-1345@1.0.2
| | | `-- macaddress@0.5.1
| | `-- yggdrasil@1.3.0
| |   +-- phin@3.5.0
| |   | `-- centra@2.4.2
| |   `-- uuid@3.4.0
| +-- prismarine-biome@1.1.0
| | `-- standard@11.0.1
| |   +-- eslint@4.18.2
| |   | +-- ajv@5.5.2 extraneous
| |   | +-- babel-code-frame@6.26.0
| |   | | +-- chalk@1.1.3 extraneous
| |   | | +-- esutils@2.0.3 deduped
| |   | | `-- js-tokens@3.0.2
| |   | +-- chalk@2.4.2
| |   | | +-- ansi-styles@3.2.1 extraneous
| |   | | +-- escape-string-regexp@1.0.5
| |   | | `-- supports-color@5.5.0 extraneous
| |   | +-- concat-stream@1.6.2
| |   | | +-- buffer-from@1.1.1
| |   | | +-- inherits@2.0.4 deduped
| |   | | +-- readable-stream@2.3.7 extraneous
| |   | | `-- typedarray@0.0.6
| |   | +-- cross-spawn@5.1.0
| |   | | +-- lru-cache@4.1.5
| |   | | | +-- pseudomap@1.0.2
| |   | | | `-- yallist@2.1.2
| |   | | +-- shebang-command@1.2.0
| |   | | | `-- shebang-regex@1.0.0
| |   | | `-- which@1.3.1
| |   | |   `-- isexe@2.0.0
| |   | +-- debug@3.2.6 extraneous
| |   | +-- doctrine@2.1.0
| |   | | `-- esutils@2.0.3 deduped
| |   | +-- eslint-scope@3.7.3
| |   | | +-- esrecurse@4.2.1
| |   | | | `-- estraverse@4.3.0 deduped
| |   | | `-- estraverse@4.3.0
| |   | +-- eslint-visitor-keys@1.3.0
| |   | +-- espree@3.5.4
| |   | | +-- acorn@5.7.4
| |   | | `-- acorn-jsx@3.0.1
| |   | |   `-- acorn@3.3.0 extraneous
| |   | +-- esquery@1.3.1
| |   | | `-- estraverse@5.1.0 extraneous
| |   | +-- esutils@2.0.3
| |   | +-- file-entry-cache@2.0.0
| |   | | +-- flat-cache@1.3.4
| |   | | | +-- circular-json@0.3.3
| |   | | | +-- graceful-fs@4.2.4
| |   | | | +-- rimraf@2.6.3
| |   | | | | `-- glob@7.1.6 deduped
| |   | | | `-- write@0.2.1
| |   | | |   `-- mkdirp@0.5.5 deduped
| |   | | `-- object-assign@4.1.1
| |   | +-- functional-red-black-tree@1.0.1
| |   | +-- glob@7.1.6
| |   | | +-- fs.realpath@1.0.0
| |   | | +-- inflight@1.0.6
| |   | | | +-- once@1.4.0 deduped
| |   | | | `-- wrappy@1.0.2
| |   | | +-- inherits@2.0.4 deduped
| |   | | +-- minimatch@3.0.4 deduped
| |   | | +-- once@1.4.0
| |   | | | `-- wrappy@1.0.2 deduped
| |   | | `-- path-is-absolute@1.0.1
| |   | +-- globals@11.12.0
| |   | +-- ignore@3.3.10
| |   | +-- imurmurhash@0.1.4
| |   | +-- inquirer@3.3.0
| |   | | +-- ansi-escapes@3.2.0
| |   | | +-- chalk@2.4.2 deduped
| |   | | +-- cli-cursor@2.1.0
| |   | | | `-- restore-cursor@2.0.0
| |   | | |   +-- onetime@2.0.1
| |   | | |   | `-- mimic-fn@1.2.0
| |   | | |   `-- signal-exit@3.0.3
| |   | | +-- cli-width@2.2.1
| |   | | +-- external-editor@2.2.0
| |   | | | +-- chardet@0.4.2
| |   | | | +-- iconv-lite@0.4.24
| |   | | | | `-- safer-buffer@2.1.2
| |   | | | `-- tmp@0.0.33
| |   | | |   `-- os-tmpdir@1.0.2
| |   | | +-- figures@2.0.0
| |   | | | `-- escape-string-regexp@1.0.5 deduped
| |   | | +-- lodash@4.17.15 deduped
| |   | | +-- mute-stream@0.0.7
| |   | | +-- run-async@2.4.1
| |   | | +-- rx-lite@4.0.8
| |   | | +-- rx-lite-aggregates@4.0.8
| |   | | | `-- rx-lite@4.0.8 deduped
| |   | | +-- string-width@2.1.1
| |   | | | +-- is-fullwidth-code-point@2.0.0
| |   | | | `-- strip-ansi@4.0.0 deduped
| |   | | +-- strip-ansi@4.0.0 deduped
| |   | | `-- through@2.3.8
| |   | +-- is-resolvable@1.1.0
| |   | +-- js-yaml@3.14.0
| |   | | +-- argparse@1.0.10
| |   | | | `-- sprintf-js@1.0.3 extraneous
| |   | | `-- esprima@4.0.1
| |   | +-- json-stable-stringify-without-jsonify@1.0.1
| |   | +-- levn@0.3.0
| |   | | +-- prelude-ls@1.1.2
| |   | | `-- type-check@0.3.2
| |   | |   `-- prelude-ls@1.1.2 deduped
| |   | +-- lodash@4.17.15
| |   | +-- minimatch@3.0.4
| |   | | `-- brace-expansion@1.1.11
| |   | |   +-- balanced-match@1.0.0
| |   | |   `-- concat-map@0.0.1
| |   | +-- mkdirp@0.5.5
| |   | | `-- minimist@1.2.5 deduped
| |   | +-- natural-compare@1.4.0
| |   | +-- optionator@0.8.3
| |   | | +-- deep-is@0.1.3
| |   | | +-- fast-levenshtein@2.0.6
| |   | | +-- levn@0.3.0 deduped
| |   | | +-- prelude-ls@1.1.2 deduped
| |   | | +-- type-check@0.3.2 deduped
| |   | | `-- word-wrap@1.2.3
| |   | +-- path-is-inside@1.0.2
| |   | +-- pluralize@7.0.0
| |   | +-- progress@2.0.3
| |   | +-- require-uncached@1.0.3
| |   | | +-- caller-path@0.1.0
| |   | | | `-- callsites@0.2.0
| |   | | `-- resolve-from@1.0.1
| |   | +-- semver@5.7.1
| |   | +-- strip-ansi@4.0.0
| |   | | `-- ansi-regex@3.0.0 extraneous
| |   | +-- strip-json-comments@2.0.1
| |   | +-- table@4.0.2
| |   | | +-- UNMET PEER DEPENDENCY ajv@5.5.2 extraneous
| |   | | +-- ajv-keywords@2.1.1
| |   | | +-- chalk@2.4.2 deduped
| |   | | +-- lodash@4.17.15 deduped
| |   | | +-- slice-ansi@1.0.0
| |   | | | `-- is-fullwidth-code-point@2.0.0 deduped
| |   | | `-- string-width@2.1.1 deduped
| |   | `-- text-table@0.2.0
| |   +-- eslint-config-standard@11.0.0
| |   +-- eslint-config-standard-jsx@5.0.0
| |   +-- eslint-plugin-import@2.9.0
| |   | +-- builtin-modules@1.1.1
| |   | +-- contains-path@0.1.0
| |   | +-- debug@2.6.9 extraneous
| |   | +-- doctrine@1.5.0 extraneous
| |   | +-- eslint-import-resolver-node@0.3.4
| |   | | +-- debug@2.6.9 extraneous
| |   | | `-- resolve@1.17.0 deduped
| |   | +-- eslint-module-utils@2.6.0
| |   | | +-- debug@2.6.9 extraneous
| |   | | `-- pkg-dir@2.0.0
| |   | |   `-- find-up@2.1.0 deduped
| |   | +-- has@1.0.3
| |   | | `-- function-bind@1.1.1
| |   | +-- lodash@4.17.15 deduped
| |   | +-- minimatch@3.0.4 deduped
| |   | `-- read-pkg-up@2.0.0
| |   |   +-- find-up@2.1.0
| |   |   | `-- locate-path@2.0.0
| |   |   |   +-- p-locate@2.0.0
| |   |   |   | `-- p-limit@1.3.0
| |   |   |   |   `-- p-try@1.0.0
| |   |   |   `-- path-exists@3.0.0
| |   |   `-- read-pkg@2.0.0
| |   |     +-- load-json-file@2.0.0
| |   |     | +-- graceful-fs@4.2.4 deduped
| |   |     | +-- parse-json@2.2.0
| |   |     | | `-- error-ex@1.3.2
| |   |     | |   `-- is-arrayish@0.2.1
| |   |     | +-- pify@2.3.0
| |   |     | `-- strip-bom@3.0.0
| |   |     +-- normalize-package-data@2.5.0
| |   |     | +-- hosted-git-info@2.8.8
| |   |     | +-- resolve@1.17.0 deduped
| |   |     | +-- semver@5.7.1 deduped
| |   |     | `-- validate-npm-package-license@3.0.4
| |   |     |   +-- spdx-correct@3.1.1
| |   |     |   | +-- spdx-expression-parse@3.0.1 deduped
| |   |     |   | `-- spdx-license-ids@3.0.5
| |   |     |   `-- spdx-expression-parse@3.0.1
| |   |     |     +-- spdx-exceptions@2.3.0
| |   |     |     `-- spdx-license-ids@3.0.5 deduped
| |   |     `-- path-type@2.0.0
| |   |       `-- pify@2.3.0 deduped
| |   +-- eslint-plugin-node@6.0.1
| |   | +-- ignore@3.3.10 deduped
| |   | +-- minimatch@3.0.4 deduped
| |   | +-- resolve@1.17.0
| |   | | `-- path-parse@1.0.6
| |   | `-- semver@5.7.1 deduped
| |   +-- eslint-plugin-promise@3.7.0
| |   +-- eslint-plugin-react@7.7.0
| |   | +-- doctrine@2.1.0 deduped
| |   | +-- has@1.0.3 deduped
| |   | +-- jsx-ast-utils@2.4.1
| |   | | +-- array-includes@3.1.1
| |   | | | +-- define-properties@1.1.3
| |   | | | | `-- object-keys@1.1.1 deduped
| |   | | | +-- es-abstract@1.17.6
| |   | | | | +-- es-to-primitive@1.2.1
| |   | | | | | +-- is-callable@1.2.0 deduped
| |   | | | | | +-- is-date-object@1.0.2
| |   | | | | | `-- is-symbol@1.0.3
| |   | | | | |   `-- has-symbols@1.0.1 deduped
| |   | | | | +-- function-bind@1.1.1 deduped
| |   | | | | +-- has@1.0.3 deduped
| |   | | | | +-- has-symbols@1.0.1 deduped
| |   | | | | +-- is-callable@1.2.0
| |   | | | | +-- is-regex@1.1.0
| |   | | | | | `-- has-symbols@1.0.1 deduped
| |   | | | | +-- object-inspect@1.8.0
| |   | | | | +-- object-keys@1.1.1 deduped
| |   | | | | +-- object.assign@4.1.0 deduped
| |   | | | | +-- string.prototype.trimend@1.0.1
| |   | | | | | +-- define-properties@1.1.3 deduped
| |   | | | | | `-- es-abstract@1.17.6 deduped
| |   | | | | `-- string.prototype.trimstart@1.0.1
| |   | | | |   +-- define-properties@1.1.3 deduped
| |   | | | |   `-- es-abstract@1.17.6 deduped
| |   | | | `-- is-string@1.0.5
| |   | | `-- object.assign@4.1.0
| |   | |   +-- define-properties@1.1.3 deduped
| |   | |   +-- function-bind@1.1.1 deduped
| |   | |   +-- has-symbols@1.0.1
| |   | |   `-- object-keys@1.1.1
| |   | `-- prop-types@15.7.2
| |   |   +-- loose-envify@1.4.0
| |   |   | `-- js-tokens@3.0.2 deduped
| |   |   +-- object-assign@4.1.1 deduped
| |   |   `-- react-is@16.13.1
| |   +-- eslint-plugin-standard@3.0.1
| |   `-- standard-engine@8.0.1
| |     +-- deglob@2.1.1
| |     | +-- find-root@1.1.0
| |     | +-- glob@7.1.6 deduped
| |     | +-- ignore@3.3.10 deduped
| |     | +-- pkg-config@1.1.1
| |     | | +-- debug-log@1.0.1
| |     | | +-- find-root@1.1.0 deduped
| |     | | `-- xtend@4.0.2
| |     | +-- run-parallel@1.1.9
| |     | `-- uniq@1.0.1
| |     +-- get-stdin@6.0.0
| |     +-- minimist@1.2.5
| |     `-- pkg-conf@2.1.0
| |       +-- find-up@2.1.0 deduped
| |       `-- load-json-file@4.0.0 extraneous
| +-- prismarine-block@1.6.0
| | `-- prismarine-biome@1.1.0 deduped
| +-- prismarine-chat@1.0.2
| | +-- minecraft-data@2.67.0 extraneous
| | +-- mojangson@1.1.0 extraneous
| | `-- sprintf-js@1.1.2
| +-- prismarine-chunk@1.20.3 extraneous
| +-- prismarine-entity@1.0.0
| | `-- vec3@0.1.5 deduped
| +-- prismarine-item@1.5.0 extraneous
| +-- prismarine-physics@1.0.6
| | `-- vec3@0.1.6 extraneous
| +-- prismarine-recipe@1.1.0
| +-- prismarine-windows@1.6.0 extraneous
| +-- prismarine-world@3.1.0
| | +-- event-promise@0.0.1
| | | `-- promise@5.0.0
| | |   `-- asap@1.0.0
| | `-- vec3@0.1.5 deduped
| +-- protodef@1.8.0
| | +-- lodash.get@4.4.2 deduped
| | +-- lodash.reduce@4.6.0
| | +-- protodef-validator@1.2.3
| | | `-- ajv@6.12.2
| | |   +-- fast-deep-equal@3.1.3
| | |   +-- fast-json-stable-stringify@2.1.0
| | |   +-- json-schema-traverse@0.4.1
| | |   `-- uri-js@4.2.2
| | |     `-- punycode@2.1.1
| | `-- readable-stream@3.6.0 deduped
| +-- typed-emitter@1.3.0
| `-- vec3@0.1.6 extraneous
+-- mineflayer-navigate@0.0.10
| +-- a-star@0.2.0
| | +-- dict@1.4.0
| | +-- heap@0.2.6
| | `-- Set@0.4.1
| `-- vec3@0.1.5
|   `-- standard@14.3.4 extraneous
+-- mineflayer-pathfinder@1.0.10
| +-- minecraft-data@2.67.0 extraneous
| +-- mineflayer@2.28.1 extraneous
| +-- prismarine-nbt@1.3.0
| | `-- protodef@1.8.0 deduped
| +-- prismarine-physics@1.0.6 deduped
| `-- vec3@0.1.6 extraneous
+-- mineflayer-scaffold@1.0.0
| `-- vec3@0.1.5 deduped
+-- mojangson@0.2.4
`-- prismarine-item@1.5.0

npm ERR! extraneous: minecraft-data@2.67.0 C:\MinecraftBot\node_modules\mineflayer\node_modules\minecraft-data
npm ERR! extraneous: prismarine-chunk@1.20.3 C:\MinecraftBot\node_modules\mineflayer\node_modules\prismarine-chunk
npm ERR! extraneous: prismarine-item@1.5.0 C:\MinecraftBot\node_modules\mineflayer\node_modules\prismarine-item
npm ERR! extraneous: prismarine-windows@1.6.0 C:\MinecraftBot\node_modules\mineflayer\node_modules\prismarine-windows
npm ERR! extraneous: vec3@0.1.6 C:\MinecraftBot\node_modules\mineflayer\node_modules\vec3
npm ERR! extraneous: chalk@1.1.3 C:\MinecraftBot\node_modules\babel-code-frame\node_modules\chalk
npm ERR! extraneous: ansi-styles@3.2.1 C:\MinecraftBot\node_modules\chalk\node_modules\ansi-styles
npm ERR! extraneous: supports-color@5.5.0 C:\MinecraftBot\node_modules\chalk\node_modules\supports-color
npm ERR! extraneous: readable-stream@2.3.7 C:\MinecraftBot\node_modules\concat-stream\node_modules\readable-stream
npm ERR! extraneous: ajv@5.5.2 C:\MinecraftBot\node_modules\eslint\node_modules\ajv
npm ERR! extraneous: debug@3.2.6 C:\MinecraftBot\node_modules\eslint\node_modules\debug
npm ERR! extraneous: acorn@3.3.0 C:\MinecraftBot\node_modules\acorn-jsx\node_modules\acorn
npm ERR! extraneous: estraverse@5.1.0 C:\MinecraftBot\node_modules\esquery\node_modules\estraverse
npm ERR! extraneous: sprintf-js@1.0.3 C:\MinecraftBot\node_modules\argparse\node_modules\sprintf-js
npm ERR! extraneous: ansi-regex@3.0.0 C:\MinecraftBot\node_modules\strip-ansi\node_modules\ansi-regex
npm ERR! peer dep missing: ajv@^5.0.0, required by ajv-keywords@2.1.1
npm ERR! extraneous: debug@2.6.9 C:\MinecraftBot\node_modules\eslint-import-resolver-node\node_modules\debug
npm ERR! extraneous: debug@2.6.9 C:\MinecraftBot\node_modules\eslint-module-utils\node_modules\debug
npm ERR! extraneous: debug@2.6.9 C:\MinecraftBot\node_modules\eslint-plugin-import\node_modules\debug
npm ERR! extraneous: doctrine@1.5.0 C:\MinecraftBot\node_modules\eslint-plugin-import\node_modules\doctrine
npm ERR! extraneous: load-json-file@4.0.0 C:\MinecraftBot\node_modules\pkg-conf\node_modules\load-json-file
npm ERR! extraneous: minecraft-data@2.67.0 C:\MinecraftBot\node_modules\prismarine-chat\node_modules\minecraft-data
npm ERR! extraneous: mojangson@1.1.0 C:\MinecraftBot\node_modules\prismarine-chat\node_modules\mojangson
npm ERR! extraneous: vec3@0.1.6 C:\MinecraftBot\node_modules\prismarine-physics\node_modules\vec3
npm ERR! extraneous: standard@14.3.4 C:\MinecraftBot\node_modules\vec3\node_modules\standard
npm ERR! extraneous: minecraft-data@2.67.0 C:\MinecraftBot\node_modules\mineflayer-pathfinder\node_modules\minecraft-data
npm ERR! extraneous: mineflayer@2.28.1 C:\MinecraftBot\node_modules\mineflayer-pathfinder\node_modules\mineflayer
npm ERR! extraneous: vec3@0.1.6 C:\MinecraftBot\node_modules\mineflayer-pathfinder\node_modules\vec3
Karang commented 4 years ago

ok, so it's a mess and npm update --depth 999 didn't work as expected.

My personal method to update everything (and make sure no package is duplicated) is to delete node_modules and package-lock.json then redo npm install.

You might also want to check if your node / npm are up to date.

IkeVoodoo commented 4 years ago

ok, so it's a mess and npm update --depth 999 didn't work as expected.

My personal method to update everything (and make sure no package is duplicated) is to delete node_modules and package-lock.json then redo npm install.

You might also want to check if your node / npm are up to date.

Thank you! It now works, i had to reinstall npm, it now works