linux - mkdir: cannot create directory ‘/usr/local/n/versions’: Permission denied -
when run npm install n -g
on computer (ubuntu), have these errors:
➜ ~ npm install -g n /home/joes/.nvm/v0.10.38/bin/n -> /home/joes/.nvm/v0.10.38/lib/node_modules/n/bin/n n@2.0.2 /home/joes/.nvm/v0.10.38/lib/node_modules/n` ➜ ~ n mkdir: cannot create directory ‘/usr/local/n/versions ’: permission denied mkdir: cannot create directory ‘/usr/local/n/versions ’: permission denied find: '/usr/local/n/versions': no such file or directory` error: no installed version
are logged in root user on ubuntu machine? if not, try running commands sudo
.
you may have chown
/usr/local/n
directory user.
it's 1 of these cause permission denied error you're seeing.
Comments
Post a Comment