当我在我的计算机(Ubuntu)上运行npm install n -g
时,我遇到以下错误:
➜ ~ 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
答案 0 :(得分:4)