Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install the hb-service on OSX with M2 chipset #3599

Open
ams-ryanolson opened this issue Apr 22, 2024 · 4 comments
Open

Cannot install the hb-service on OSX with M2 chipset #3599

ams-ryanolson opened this issue Apr 22, 2024 · 4 comments
Labels

Comments

@ams-ryanolson
Copy link

ams-ryanolson commented Apr 22, 2024

Current Situation

I am trying to install the hb-service onto my Mac Studio M2. When I run the installer on my mac, I get the following error
`✖ ERROR: User "XXX" does not have write access to the global npm modules path.
✖ You can fix this issue by running the following commands:

sudo chown -R xxx:admin "/Users/xxx/Library/Application Support/Herd/config/nvm/versions/node/v21.7.2/lib/node_modules"
sudo chown -R xxx:admin "$(dirname $(which npm))"

✖ Once you have done this run the hb-service install command again to complete your installation.
`

After running those commands, the issue still persists

Logs

no logs with validating info

Configuration

not applicable

Environment

  • OS: OSX Sonoma 14.4.1
  • Software:
  • Node: 21.7.2
  • npm: 10.5.0

Process Supervisor

hb-service

Additional Context

No response

@donavanbecker
Copy link
Contributor

Have you installed nodejs already?

@ams-ryanolson
Copy link
Author

Yes, fully installed. I am also a full stack Dev. So to add some additional context

I use NVM but global and node versions are all set and validated based on the commands requested
I am also using a Laravel Helper called Herd. It is just an enviro management for my dev sites locally but has no bearing on this

I can also run hb-service run and it works fine

@NorthernMan54
Copy link
Contributor

@ams-ryanolson - This is a bit odd, as I do my development on a M2 MacBook Pro without issue. Did you follow these instructions ?

https://github.com/homebridge/homebridge/wiki/Install-Homebridge-on-macOS

Looking at the provided log, it directly calls out herd which is not something we work with

/Library/Application Support/Herd/config

@ams-ryanolson
Copy link
Author

I agree on herd. So before I posted the issue I did change the location of node/npm with the same issue as above. The node location doesn't seem to be the issue.

Honestly I'm going to try purge and reinstall this weekend and see if that works but I don't have high hopes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants