Search code examples
node.jsnpmn

n (node version manager): cannot create directory


On lubuntu 14.10. I'm trying to update node with "n" (node version manager)

Installed with:

sudo npm install -g n

without "sudo" it would fail asking for admin privileges...

when trying to use "n", I always get "cannot create directory", "permission denied".

How to make "n" use the proper permissions?


Solution

  • I think the best way to install n is to use n-install.