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
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