I have read this thread npm / yeoman install generator-angular without sudo and resolve the permissions problem with the first way described here https://gist.github.com/isaacs/579814
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://npmjs.org/install.sh | sh
So now it works for some generators but it doesn't work for the generator-webapp I still getting permissions error for that one probably because I have installed it before with sudo. How can I overcome this problem and maybe someone can describe on the answer what have I done with the above commands.