问题描述
- 用nvm 安装nodeV0.12.0版本时报权限不足
-
nvm install v0.12.0 安装时报权限不足,
mkdir: cannot create directory ‘/home/ubuntu/.nvm/bin’: Permission denied
grep: /home/ubuntu/.nvm/bin/node-v0.12.0-linux-x64/node-v0.12.0-linux-x64.tar.gz: No such file or directory
Binary download failed, trying source.
mkdir: cannot create directory ‘/home/ubuntu/.nvm/src’: Permission denied
nvm: install v0.12.0 failed!但是前面加了sudo 会直接报 sudo: nvm: command not found
sudo: nvm: command not found
解决方案
你不是用root用户登录的,,权限不够
时间: 2024-10-29 11:59:55