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
=> 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
.bashrc
, .bash_profile
, .zshrc
usw.), das das PATH
modifiziert?echo $PATH
gibt /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
curl -I --compressed -v https://nodejs.org/dist/
ausgedruckt?
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?
Hilfreichster Kommentar
Ich habe
touch ~/.bash_profile
und die Dinge scheinen zu funktionieren. Ist das das Richtige?