Skip to content

Instantly share code, notes, and snippets.

@matiaslopezd
Last active April 1, 2020 14:45
Show Gist options
  • Save matiaslopezd/5ee85ddcb15509b505f7b2b366d1d25a to your computer and use it in GitHub Desktop.
Save matiaslopezd/5ee85ddcb15509b505f7b2b366d1d25a to your computer and use it in GitHub Desktop.
Solve to problem of permissions access to node-gyp

To solve the problem when execute npm install and get node-gyp error access permission:

EACCES current user ("$user") does not have permission to access the dev dir "/root/.cache/node-gyp/12.16.1"

Execute the follow commands:

sudo npm -g install node-gyp --unsafe-perm

After do that try again npm install

sudo node-gyp configure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment