2017-06-01 3 views

Antwort

1

Hat das Node/NPM-Setup eine ~/.bash_profile- oder ~/.bash_login-Datei erstellt? Wenn dies der Fall ist, wird bash diese Quelle anstelle von ~/.profile beim Start bereitstellen. Wenn dies das Problem ist, gibt es ein paar Möglichkeiten, es zu beheben:

  • Kopieren Sie den Inhalt Ihrer ~/.profile-Datei in ~/.bash_profile (oder ~/.bash_login). Sie können auch ~/.profile löschen, um zukünftige Verwirrung zu vermeiden.

  • einen Befehl an ~/.bash_profile hinzufügen (oder ~/.bash_login) zu source ~/.profile auch:

    [ -f ~/.profile ] && source ~/.profile 
    
+0

Migration Export von '~/.profile' zu' ~/.bash_profile_ löste das Problem. – Jason

Verwandte Themen