homebridge / node-pty-prebuilt-multiarch

A parallel fork of node-pty providing ia32, amd64, arm, and aarch64 prebuilt packages for macOS, Windows and Linux (glibc and musl libc).
https://www.npmjs.com/package/@homebridge/node-pty-prebuilt-multiarch
Other
31 stars 15 forks source link

Cant install Beta 21 on Mac OS (beta 20 and below does install) #48

Open macjeff opened 2 hours ago

macjeff commented 2 hours ago

Describe The Bug

I get errors when installing beta 21 both through UI and Manual. Go back to beta 20 or 19 and it works fine.

Logs

Attached. Tried once and failed and got message to chown in the first log.

Did that but same result. I don't think that has anything to do with issue

Please see attachments homebridge-config-ui-x-error(before chown ).log homebridge-config-ui-x-error(after chown).log

Config

I don't think the config file is relevant.

seems to be either a permissions or missing library issue.

I did reinstall homebridge and homebridge UI release and same issue when I try to go to beta 20.

but please note running Mac OS Catalina 10.15.7 on older mac mini but as I said it runs beta 20 fine.

Homebridge UI Version

4.62.1 beta 21

Homebridge Version

2.0.0 beta 23

Node.js Version

22.11.0

Operating System

macOS

Environment Info

Using hb-service

Raspberry Pi Model

None

NorthernMan54 commented 2 hours ago

Tks @macjeff for reporting this with logs - In this version of the UI, we included an updated node-pty, and it appears to fail on your setup.

Now to look deeper

NorthernMan54 commented 2 hours ago
@homebridge/node-pty-prebuilt-multiarch@0.12.0-beta.1 postinstall
> node scripts/post-install.js
\
> Cleaning release folder...
> Moving conpty.dll...
  SKIPPED (not Windows)
> Generating compile_commands.json...
npm error code EEXIST
npm error syscall mkdir
npm error path /Users/sadmin/.npm/_cacache/content-v2/sha512/0e/0e
npm error errno EEXIST
npm error Invalid response body while trying to fetch https://registry.npmjs.org/glob: EACCES: permission denied, mkdir '/Users/sadmin/.npm/_cacache/content-v2/sha512/0e/0e'
npm error File exists: /Users/sadmin/.npm/_cacache/content-v2/sha512/0e/0e
npm error Remove the existing file and try again, or run npm
npm error with --force to overwrite files recklessly.
npm error A complete log of this run can be found in: /Users/sadmin/.npm/_logs/2024-11-16T17_05_31_539Z-debug-0.log
node:child_process:963
    throw err;
    ^

Error: Command failed: npx node-gyp configure -- -f compile_commands_json
npm error code EEXIST
npm error syscall mkdir
npm error path /Users/sadmin/.npm/_cacache/content-v2/sha512/0e/0e
npm error errno EEXIST
npm error Invalid response body while trying to fetch https://registry.npmjs.org/glob: EACCES: permission denied, mkdir '/Users/sadmin/.npm/_cacache/content-v2/sha512/0e/0e'
npm error File exists: /Users/sadmin/.npm/_cacache/content-v2/sha512/0e/0e
npm error Remove the existing file and try again, or run npm
npm error with --force to overwrite files recklessly.
npm error A complete log of this run can be found in: /Users/sadmin/.npm/_logs/2024-11-16T17_05_31_539Z-debug-0.log