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

npm installation may fail on no permission to access dev dir #1

Open
GabiAxel opened this issue Apr 27, 2018 · 0 comments
Open

npm installation may fail on no permission to access dev dir #1

GabiAxel opened this issue Apr 27, 2018 · 0 comments

Comments

@GabiAxel
Copy link
Owner

When installing with npm i -g google-cloud-gui , you may encounter repeating:

gyp WARN EACCES user "root" does not have permission to access the dev dir "/usr/local/lib/node_modules/google-cloud-gui/node_modules/grpc/.node-gyp/8.11.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/google-cloud-gui/node_modules/grpc/.node-gyp"

Best workaround is to use Yarn - yarn global add google-cloud-gui

Another possible, less recommended workaround, is to use --unsafe-perm flag like so: npm i -g google-cloud-gui --unsafe-perm as discussed here: nodejs/node-gyp#454

If anyone can propose a proper fix, that would be most welcome.

@GabiAxel GabiAxel mentioned this issue Apr 29, 2018
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

1 participant