mineflayer icon indicating copy to clipboard operation
mineflayer copied to clipboard

Not installed

Open d0m-4k opened this issue 2 years ago • 7 comments

I write npm install mineflayer And I get an error

Error: https://pastebin.com/uZi8DRxH Log: https://pastebin.com/1nhEJmDC

Node version: v9.6.6 Npm version: v20.2.0

d0m-4k avatar Oct 29 '23 06:10 d0m-4k

What is nearley? Try removing it

On Sun, Oct 29, 2023, 14:58 dom1k @.***> wrote:

I write npm install mineflayer And I get an error

Error: https://pastebin.com/uZi8DRxH Log: https://pastebin.com/1nhEJmDC

Node version: v9.6.6 Npm version: v20.2.0

— Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/mineflayer/issues/3217, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437W5KPK6HJWDGIUMQW3YBX5B7AVCNFSM6AAAAAA6UUIYRGVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE3DMOBWHE4TMOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

rom1504 avatar Oct 29 '23 13:10 rom1504

@rom1504 Does not work

d0m-4k avatar Oct 31 '23 00:10 d0m-4k

Provide more info

On Tue, Oct 31, 2023, 08:14 dom1k @.***> wrote:

Does not work

— Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/mineflayer/issues/3217#issuecomment-1786239812, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437SOVY2Q2HUN53KLCBLYCA7GNAVCNFSM6AAAAAA6UUIYRGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBWGIZTSOBRGI . You are receiving this because you commented.Message ID: @.***>

rom1504 avatar Oct 31 '23 00:10 rom1504

@rom1504 Which?

d0m-4k avatar Oct 31 '23 05:10 d0m-4k

npm ERR! Error: EACCES: permission denied, symlink '../nearley/bin/nearleyc.js' -> '/storage/emulated/0/!Files/projects/mcbot/node_modules/.bin/nearleyc'
npm ERR!  [Error: EACCES: permission denied, symlink '../nearley/bin/nearleyc.js' -> '/storage/emulated/0/!Files/projects/mcbot/node_modules/.bin/nearleyc'] {

your linux account seems to not have the right to write or create symlink.

tchereau avatar Jan 20 '24 21:01 tchereau

I believe nearly is used by the mojangson parser. It's possible they have some install script that's causing the install to fail, seems like your npm command isn't being run with correct perms. You'd have to fix the environment or use a different one to fix this issue

extremeheat avatar Jan 21 '24 07:01 extremeheat

Actually, looking at https://github.com/kach/nearley/blob/master/package.json, there is no install script. It's just a bin script they have. Your issue is with npm not being able to install the bin scripts on npm install, so the npm is broken. Either run with sudo, fix file system perms or try installing from somewhere where you do have fs perms

extremeheat avatar Jan 21 '24 07:01 extremeheat