vervallsweg / cast-web-api

Quick and dirty web API for Google Cast enabled devices.
GNU General Public License v3.0
141 stars 74 forks source link

"root" does not have permission to access the dev dir #79

Open vervallsweg opened 6 years ago

vervallsweg commented 6 years ago

The newly added google assistant package requires one dependency to be compiled through node-gyp. This seems to be an issue when installing the package globally.

(sudo) npm install cast-web-api@beta -g

If you're running an older version of node-gyp it'll just loop with the message:

"root" does not have permission to access the dev dir

There's no difference if you're using sudo, open a root shell or try to install as standard user. The proposed fix in the node-gyp issue is to either set the --unsafe-perm flag or not install anything globally.

I believe neither solution is acceptable.

For now I marked the google-assistant package in the v1.1.0 branch as optional. This is pretty much the only reason why v1.1.0 is not released yet. I'm not an npm expert and have no idea what the best solution is here. Maybe @kevireilly can help out, would be much appreciated.

vervallsweg commented 5 years ago

Added the --unsafe-perm flag to install instructions as workaround.