i am trying to install yeoman on my server but for some reason do i keep getting a permission denied error.
$npm install -g yo /root/.node/bin/yo -> /root
I think Shantaru is right, you need to do it with sudo.
Try this
sudo npm uninstall -g yo sudo npm cache clean sudo npm install -g yo
I have a similar problem weeks ago and that works.
Edit: If that didn't work, do this before:
npm config set unsafe-perm true