Nvm: Installationsfehler: Profil nicht gefunden. Habe ~/.bashrc, ~/.bash_profile, ~/.zshrc und ~/.profile ausprobiert.

Erstellt am 15. Juni 2018  ·  3Kommentare  ·  Quelle: nvm-sh/nvm

  • Betriebssystem und Version: OSX High Sierra 10.13.5 (17F77)

  • nvm debug Ausgabe:
    nvm: Befehl nicht gefunden


  • nvm ls Ausgabe:


  • Wie hast du nvm installiert? (zB Skript in Readme installieren, Homebrew):
    curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

  • Welche Schritte haben Sie durchgeführt?
    curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

  • Was ist passiert?
=> nvm is already installed in /Users/dillon/.nvm, trying to update using git
=> => Compressing and cleaning up git repository

=> Profile not found. Tried ~/.bashrc, ~/.bash_profile, ~/.zshrc, and ~/.profile.
=> Create one of them and run this script again
   OR
=> Append the following lines to the correct file yourself:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm

=> 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
  • Was haben Sie erwartet?
    nvm installieren
  • Gibt es etwas in Ihren Profildateien ( .bashrc , .bash_profile , .zshrc usw.), das das PATH modifiziert?
    Ich habe gerade mein Macbook auf die Werkseinstellungen zurückgesetzt, xcode installiert, xcode-Bedingungen akzeptiert, brew installiert und dann versucht, nvm zu installieren. echo $PATH gibt /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
  • Wenn Sie Installationsprobleme haben oder "N/A" erhalten, was wird curl -I --compressed -v https://nodejs.org/dist/ ausgedruckt?
    ...* Verbindung #0 zum Host nodejs.org intakt gelassen

Mac OS installing nvm profile detection

Hilfreichster Kommentar

Ich habe touch ~/.bash_profile und die Dinge scheinen zu funktionieren. Ist das das Richtige?

Alle 3 Kommentare

Ich habe touch ~/.bash_profile und die Dinge scheinen zu funktionieren. Ist das das Richtige?

Lesen Sie das einfach. Es hat mein Problem behoben.

Hinweis: Wenn Sie unter OS X den Befehl nvm: nicht gefunden bekommen, nachdem Sie das Installationsskript ausgeführt haben, kann einer der folgenden Gründe sein:

your system may not have a [.bash_profile file] where the command is set up. Simply create one with touch ~/.bash_profile and run the install script again
you might need to restart your terminal instance. Try opening a new tab/window in your terminal and retry.

@dillon , das habe ich auch gemacht 👇🏽 und es hat funktioniert. Vielen Dank!

Ich habe touch ~/.bash_profile ausgeführt und die Dinge scheinen zu funktionieren. Ist das das Richtige?

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen