2019年12月11日 星期三

How-to install nvm(Linux)


Install & Update script

To install or update nvm, you should run the install script. To do that, you may either download and run the script manually, or use the following cURL or Wget command:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
Running either of the above commands downloads a script and runs it. The script clones the nvm repository to ~/.nvm, and adds the source lines from the snippet below to your profile (~/.bash_profile~/.zshrc~/.profile, or ~/.bashrc).
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
Note: If the environment variable $XDG_CONFIG_HOME is present, it will place the nvm files there.

沒有留言:

張貼留言

宇宙的金色信使

宇宙的金色信使 💡 你知道嗎? 航海家號帶著地球唱片出發 標籤:太空探測, Voyager, 人類文化 📖 真相大揭密 1977 年雙星 Voyager 探測器攜帶鍍金唱片,挑選地球40種語言問候、90分鐘音樂與115張照片,裡頭還刻有阿曼達...