Open webarthur opened 7 years ago
Still happens in node 9.3
It's not a problem with slap or any other package that you want to install globally. If your nodejs was installed using apt-get for example, you might have problems with using 'sudo npm install ...' and the issue is probably in npm.
What helped me was cleaning the npm cache and then running install like this: sudo npm i -g --unsafe-perm slap
this repo is not maintained anymore.
See this issue, I have answered it, #414
$ sudo npm i -g slap@latest
gyp WARN EACCES user "root" does not have permission to access the dev dir "/usr/lib/node_modules/slap/node_modules/marker-index/.node-gyp/8.7.0" gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/slap/node_modules/marker-index/.node-gyp"