Installing npm packages globally using root priviledges is a bad idea for a number of reasons. Some modern distributions will fail when trying to do so (e.g. Fedora). In this blog post I will explain the necessary steps to save npm packages to your user folder instead.