I'm trying to update my version of node to the latest stable.
Using this resource I was able to:
sudo npm install n -g
But when I try
sudo npm n stable
I get:
sudo: n: command not found
If I run n stable
, the command is present:
n stable
mkdir: cannot create directory ‘/usr/local/n’: Permission denied
mkdir: cannot create directory ‘/usr/local/n’: Permission denied
mkdir: cannot create directory ‘/usr/local/n’: Permission denied
mkdir: cannot create directory ‘/usr/local/n’: Permission denied
install : node-v0.12.2
mkdir : /usr/local/n/versions/node/0.12.2
mkdir: cannot create directory ‘/usr/local/n’: Permission denied
Error: sudo required
ls /usr/local/bin/n