Installing nodejs https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#debian-and-ubuntu-based-linux-distributions npm root problems will be solved https://github.com/akrv/npm-g_nosudo chown $USER -R /home/<userDIR> That above line runs the chown command to own a directory to make R/W changes.