2017-08-14 84 views

回答

0

我意識到,這種情況發生,因爲最近,我將系統默認的shell從慶典到的zsh - chsh -s /bin/zsh - 如果不解決這是由bash但不zsh來源的的~/.bash_profile內容。

nvm安裝腳本
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
地方的適當配置文件酮如下:~/.bash_profile~/.zshrc~/.profile,或~/.bashrc

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 

在安裝我的時間用bash和該位被放置在~/.bash_profile。應對內容到~/.zshrc得到的命令再次工作。