contos安装nvm:
安装失败,因为没有安装git
问题描述:
报错:/home/jkt/.nvm/nvm.sh: line 1: 400:: command not found
=> nvm is already installed in /home/jkt/.nvm, trying to update the script
=> nvm source string already in /home/jkt/.bashrc
=> bash_completion source string already in /home/jkt/.bashrc
/home/jkt/.nvm/nvm.sh: line 1: 400:: command not found
=> Close and reopen your terminal to start using nvm or run the following to use it now:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
原因分析:
因为没有安装git
解决方案:
yum install -y git