2017-08-14 2 views

Antwort

0

fand ich erkannte, dass dies geschah, weil ich vor kurzem mein System Standard-Shell von bash zsh geschaltet - chsh -s /bin/zsh - ohne den Inhalt des ~/.bash_profile Adressierung, die von bash bezogen ist aber nicht zsh .

Die nvm Installationsskript
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
Orte im Anschluss an die in der entsprechenden Konfigurationsdatei -onvon: ~/.bash_profile, ~/.zshrc, ~/.profile oder ~/.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 

Zum Zeitpunkt ich installieren verwendet bash und das Bit wurde in ~/.bash_profile gelegt. Um den Inhalt auf ~/.zshrc zu übertragen, haben die Befehle wieder funktioniert.