I installed node JS in linux virtual machine on my windows. The problem is I can't use npm like npm install -g node-inspector. But I think the error is because of my node version. My node JS version is 0.10.35. I tried below one. but it still doesn't work. The error message gyp WARN EACCES user "root" does not have permission to access the dev dir "~/.node-gyp/0.10.35"
sudo npm cache clean -f
sudo npm install -g n
sudo n stable