vervallsweg/cast-web-api

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

vervallsweg opened this issue · 1 comments

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.

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