slap-editor / slap

Sublime-like terminal-based text editor
MIT License
6.14k stars 217 forks source link

Build fails on Node v8.7 (node-gyp) #405

Open webarthur opened 7 years ago

webarthur commented 7 years ago

$ 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"

TomSchillemans commented 6 years ago

Still happens in node 9.3

tomdol commented 6 years ago

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

JulesGM commented 5 years ago

this repo is not maintained anymore.

MuhammadSawalhy commented 3 years ago

See this issue, I have answered it, #414