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

failed to install plugin #1

Open
okapior opened this issue Jan 20, 2020 · 3 comments
Open

failed to install plugin #1

okapior opened this issue Jan 20, 2020 · 3 comments

Comments

@okapior
Copy link

okapior commented Jan 20, 2020

Hi Henry.
I tried to install your plugin for Homebridge DHT12 sensors and failed to install. Log is below.
Do you have any clue what can cause it?
I tried to install with and without sudo command, result is the same:
I am using hoobs on Raspi 4


> gyp WARN EACCES current user ("hoobs") does not have permission to access the dev dir "/root/.cache/node-gyp/12.13.1"
> gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/node_modules/i2c/.node-gyp"
> gyp WARN install got an error, rolling back install
> gyp WARN install got an error, rolling back install
> gyp ERR! configure error 
> gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/node_modules/i2c/.node-gyp'
> gyp ERR! System Linux 4.19.75-v7l+
> gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
> gyp ERR! cwd /home/node_modules/i2c
> gyp ERR! node -v v12.13.1
> gyp ERR! node-gyp -v v5.0.5
> gyp ERR! not ok 
> npm WARN enoent ENOENT: no such file or directory, open '/home/package.json'
> npm WARN home No description
> npm WARN home No repository field.
> npm WARN home No README data
> npm WARN home No license field.
> 
> npm ERR! code ELIFECYCLE
> npm ERR! errno 1
> npm ERR! [email protected] install: `node-gyp rebuild`
> npm ERR! Exit status 1
> npm ERR! 
> npm ERR! Failed at the [email protected] install script.
> npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Your help will be appreciated.
Regards
Marcin

@henry-spanka
Copy link
Owner

Hi,
you need to install it in your home directory.
Check with echo $HOME and make sure that you run npm install in this directory.

@okapior
Copy link
Author

okapior commented Jan 21, 2020

Hi.
Didn't work. the same error as output.
Tried with and without sudo command, result the same.

@henry-spanka
Copy link
Owner

henry-spanka commented Jan 21, 2020

Your permissions for your home directory are incorrect. If the home directory of your user is /home then the user was not correctly created. Normally each user should have their own home directory in /home/{username}. You can not install the plugin as root.

Edit: If you use hoobs then there is something wrong with the permissions. I do not use hoobs but can say that the plugin works on a stock linux system.

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

No branches or pull requests

2 participants