This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |
| install_yarn_latest_node.js_on_linux [11.11.2020 05:10] – Pascal Suter | install_yarn_latest_node.js_on_linux [13.11.2020 23:16] (current) – Pascal Suter |
|---|
| |
| install the latest version of nvm. note, this will install nvm globally for all users. | install the latest version of nvm. note, this will install nvm globally for all users. |
| export XDG_CONFIG_HOME="/opt" | <code> |
| curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$(curl -s https://api.github.com/repos/nvm-sh/nvm/releases/latest | grep "tag_name" | cut -d : -f 2,3 | tr -d ' ",')/install.sh | bash | export XDG_CONFIG_HOME="/opt" |
| echo 'export NVM_DIR="'$XDG_CONFIG_HOME'/nvm" | curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$(curl -s https://api.github.com/repos/nvm-sh/nvm/releases/latest | grep "tag_name" | cut -d : -f 2,3 | tr -d ' ",')/install.sh | bash |
| | echo 'export NVM_DIR="'$XDG_CONFIG_HOME'/nvm" |
| [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads 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' > /etc/profile.d/nvm.sh | [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion' > /etc/profile.d/nvm.sh |
| source /etc/profile.d/nvm.sh | source /etc/profile.d/nvm.sh |
| | </code> |
| |
| install latest version of nodejs with nvm | install latest version of nodejs with nvm |