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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -