Skip to content
Myr

v0.37.1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent 510b2fd · Browse files · 4 files+11 added−11 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+11 added−11 removed

  • other:+11 added−11 removed

4 files+11 added−11 removed

modified:install.sh+1 added-1 removed
17 unmodified lines
18 fi19}2021nvm_latest_version() {22 echo "v0.37.0"22 echo "v0.37.1"23}2425nvm_profile_is_bash_or_zsh() {26 local TEST_PROFILE
399 unmodified lines
modified:nvm.sh+1 added-1 removed
3896 unmodified lines
3897 esac3898 NVM_VERSION_ONLY=true NVM_LTS="${NVM_LTS-}" nvm_remote_version "${PATTERN:-node}"3899 ;;3900 "--version" | "-v")3901 nvm_echo '0.37.0'3901 nvm_echo '0.37.1'3902 ;;3903 "unload")3904 nvm deactivate >/dev/null 2>&13905 unset -f nvm \
218 unmodified lines
modified:package.json+1 added-1 removed
modified:README.md+8 added-8 removed
1# Node Version Manager [![Build Status](https://travis-ci.org/nvm-sh/nvm.svg?branch=master)][3] [![nvm version](https://img.shields.io/badge/version-v0.37.0-yellow.svg)][4] [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/684/badge)](https://bestpractices.coreinfrastructure.org/projects/684)1# Node Version Manager [![Build Status](https://travis-ci.org/nvm-sh/nvm.svg?branch=master)][3] [![nvm version](https://img.shields.io/badge/version-v0.37.1-yellow.svg)][4] [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/684/badge)](https://bestpractices.coreinfrastructure.org/projects/684)23<!-- To update this table of contents, ensure you have run `npm install` then `npm run doctoc` -->4<!-- START doctoc generated TOC please keep comment here to allow auto update -->5<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
54 unmodified lines
60### Install & Update Script6162To **install** or **update** nvm, you should run the [install script][2]. To do that, you may either download and run the script manually, or use the following cURL or Wget command:63```sh64curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.0/install.sh | bash64curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.1/install.sh | bash65```66```sh67wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.0/install.sh | bash67wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.1/install.sh | bash68```6970Running either of the above commands downloads a script and runs it. The script clones the nvm repository to `~/.nvm`, and attempts to add the source lines from the snippet below to the correct profile file (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`).71
44 unmodified lines
116117```yaml118- name: nvm119 shell: >120 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.0/install.sh | bash120 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.1/install.sh | bash121 args:122 creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh"123```124
50 unmodified lines
175If you have `git` installed (requires git v1.7.10+):1761771. clone this repo in the root of your user profile178 - `cd ~/` from anywhere then `git clone https://github.com/nvm-sh/nvm.git .nvm`1791. `cd ~/.nvm` and check out the latest version with `git checkout v0.37.0`1791. `cd ~/.nvm` and check out the latest version with `git checkout v0.37.1`1801. activate `nvm` by sourcing it from your shell: `. nvm.sh`181182Now add these lines to your `~/.bashrc`, `~/.profile`, or `~/.zshrc` file to have it automatically sourced upon login:183(you may have to add to more than one of the above files)
575 unmodified lines
759If installing nvm on Alpine Linux *is* still what you want or need to do, you should be able to achieve this by running the following from you Alpine Linux shell:760761```sh762apk add -U curl bash ca-certificates openssl ncurses coreutils python2 make gcc g++ libgcc linux-headers grep util-linux binutils findutils763curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.0/install.sh | bash763curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.1/install.sh | bash764```765766The Node project has some desire but no concrete plans (due to the overheads of building, testing and support) to offer Alpine-compatible binaries.767
88 unmodified lines
856857To change the user directory and/or account name follow the instructions [here](https://support.apple.com/en-us/HT201548)858859[1]: https://github.com/nvm-sh/nvm.git860[2]: https://github.com/nvm-sh/nvm/blob/v0.37.0/install.sh860[2]: https://github.com/nvm-sh/nvm/blob/v0.37.1/install.sh861[3]: https://travis-ci.org/nvm-sh/nvm862[4]: https://github.com/nvm-sh/nvm/releases/tag/v0.37.0862[4]: https://github.com/nvm-sh/nvm/releases/tag/v0.37.1863[Urchin]: https://github.com/scraperwiki/urchin864[Fish]: http://fishshell.com