Did you test this? The npm -g usually requires root.