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