The npm command fails because you need to be root to edit files under /usr/. You should properly configure npm, see this relevant SO answer:
$ echo prefix = ~/.node >> ~/.npmrc

just for fun, A developer's playground diary.
The npm command fails because you need to be root to edit files under /usr/. You should properly configure npm, see this relevant SO answer:
$ echo prefix = ~/.node >> ~/.npmrc