Skip to content
Myr

[meta] update repo links to point to org

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 ff77ac1 · Browse files · 8 files+35 added−35 removed
This commit

State

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

Diff stats

8 files+35 added−35 removed

  • tests:+4 added−4 removed
  • other:+31 added−31 removed

8 files+35 added−35 removed

modified:test/fast/Unit tests/nvm_change_path+1 added-1 removed
41 unmodified lines
4243[ "$NEW_PATH" = "$NVM_DIR/v0.1.2/bin" ] || die "Not correctly prepended: $NEW_PATH "444546# https://github.com/creationix/nvm/issues/1652#issuecomment-34257122346# https://github.com/nvm-sh/nvm/issues/1652#issuecomment-34257122347MAC_OS_NESTED_SESSION_PATH=/usr/bin:/usr/local/bin:$NVM_DIR/versions/node/v4.5.0/bin4849# New version dir50NEW_PATH=`nvm_change_path "$MAC_OS_NESTED_SESSION_PATH" "/bin" "$NVM_DIR/versions/node/v7.1.0"`
7 unmodified lines
modified:test/slow/nvm uninstall/Running "nvm uninstall 0.12.6" uninstalls v0.12.6+1 added-1 removed
18 unmodified lines
1920# Switch to another version so we can uninstall21nvm use 0.12.72223# if zsh, set "nomatch" opt to reproduce failure from https://github.com/creationix/nvm/issues/122823# if zsh, set "nomatch" opt to reproduce failure from https://github.com/nvm-sh/nvm/issues/122824if nvm_has "setopt"; then25 setopt nomatch26fi27
6 unmodified lines
modified:test/slow/nvm_get_latest/nvm_get_latest+2 added-2 removed
7 unmodified lines
89\. ../../../nvm.sh1011EXPECTED_VERSION="v12.3.456"12URL="https://github.com/creationix/nvm/releases/tag/$EXPECTED_VERSION"12URL="https://github.com/nvm-sh/nvm/releases/tag/$EXPECTED_VERSION"13EXPECTED_CURL_ARGS="--compressed -q -w %{url_effective}\n -L -s -S http://latest.nvm.sh -o /dev/null"14EXPECTED_WGET_ARGS="-q http://latest.nvm.sh --server-response -O /dev/null"1516curl() {
16 unmodified lines
33 else34 local WGET_CONTENTS35 WGET_CONTENTS="36 HTTP/1.1 301 Moved Permanently37 Location: https://github.com/creationix/nvm/releases/latest37 Location: https://github.com/nvm-sh/nvm/releases/latest38 Content-Type: text/html; charset=utf-839 Content-Length: 8440 Date: Mon, 22 Dec 2014 02:11:15 GMT41 HTTP/1.1 302 Found
60 unmodified lines
modified:install.sh+4 added-4 removed
49 unmodified lines
50 NVM_METHOD="$1"51 local NVM_SOURCE_URL52 NVM_SOURCE_URL="$NVM_SOURCE"53 if [ "_$NVM_METHOD" = "_script-nvm-exec" ]; then54 NVM_SOURCE_URL="https://raw.githubusercontent.com/creationix/nvm/$(nvm_latest_version)/nvm-exec"54 NVM_SOURCE_URL="https://raw.githubusercontent.com/nvm-sh/nvm/$(nvm_latest_version)/nvm-exec"55 elif [ "_$NVM_METHOD" = "_script-nvm-bash-completion" ]; then56 NVM_SOURCE_URL="https://raw.githubusercontent.com/creationix/nvm/$(nvm_latest_version)/bash_completion"56 NVM_SOURCE_URL="https://raw.githubusercontent.com/nvm-sh/nvm/$(nvm_latest_version)/bash_completion"57 elif [ -z "$NVM_SOURCE_URL" ]; then58 if [ "_$NVM_METHOD" = "_script" ]; then59 NVM_SOURCE_URL="https://raw.githubusercontent.com/creationix/nvm/$(nvm_latest_version)/nvm.sh"59 NVM_SOURCE_URL="https://raw.githubusercontent.com/nvm-sh/nvm/$(nvm_latest_version)/nvm.sh"60 elif [ "_$NVM_METHOD" = "_git" ] || [ -z "$NVM_METHOD" ]; then61 NVM_SOURCE_URL="https://github.com/creationix/nvm.git"61 NVM_SOURCE_URL="https://github.com/nvm-sh/nvm.git"62 else63 echo >&2 "Unexpected value \"$NVM_METHOD\" for \$NVM_METHOD"64 return 165 fi
364 unmodified lines
modified:nvm.sh+1 added-1 removed
644 unmodified lines
645 nvm_echo "${3-}${2-}:${1-}"646 # if the initial path contains BOTH an nvm path (checked for above) and647 # that nvm path is preceded by a system binary path, just prepend the648 # supplementary path instead of replacing it.649 # https://github.com/creationix/nvm/issues/1652#issuecomment-342571223649 # https://github.com/nvm-sh/nvm/issues/1652#issuecomment-342571223650 elif nvm_echo "${1-}" | nvm_grep -Eq "(^|:)(/usr(/local)?)?${2-}:.*${NVM_DIR}/[^/]*${2-}" \651 || nvm_echo "${1-}" | nvm_grep -Eq "(^|:)(/usr(/local)?)?${2-}:.*${NVM_DIR}/versions/[^/]*/[^/]*${2-}"; then652 nvm_echo "${3-}${2-}:${1-}"653 # use sed to replace the existing nvm path with the supplementary path. This
3000 unmodified lines
modified:package.json+3 added-3 removed
modified:README.md+18 added-18 removed
1# Node Version Manager [![Build Status](https://travis-ci.org/creationix/nvm.svg?branch=master)][3] [![nvm version](https://img.shields.io/badge/version-v0.34.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.34.0-yellow.svg)][4] [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/684/badge)](https://bestpractices.coreinfrastructure.org/projects/684)23<!-- START doctoc generated TOC please keep comment here to allow auto update -->4<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->5## Table of Contents
40 unmodified lines
4647To **install** or **update** nvm, you can use the [install script][2] using cURL:4849```sh50curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash50curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash51```5253or Wget:5455```sh56wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash56wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash57```5859<sub>The script clones the nvm repository to `~/.nvm` and adds the source line to your profile (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`).</sub>60
18 unmodified lines
79```8081simply close your current terminal, open a new terminal, and try verifying again.8283**Note:** Since OS X 10.9, `/usr/bin/git` has been preset by Xcode command line tools, which means we can't properly detect if Git is installed or not. You need to manually install the Xcode command line tools before running the install script, otherwise, it'll fail. (see [#1782](https://github.com/creationix/nvm/issues/1782))83**Note:** Since OS X 10.9, `/usr/bin/git` has been preset by Xcode command line tools, which means we can't properly detect if Git is installed or not. You need to manually install the Xcode command line tools before running the install script, otherwise, it'll fail. (see [#1782](https://github.com/nvm-sh/nvm/issues/1782))8485**Note:** On OS X, if you get `nvm: command not found` after running the install script, one of the following might be the reason:-8687 - 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
2 unmodified lines
90If the above doesn't fix the problem, open your `.bash_profile` and add the following line of code:9192`source ~/.bashrc`9394- For more information about this issue and possible workarounds, please [refer here](https://github.com/creationix/nvm/issues/576)94- For more information about this issue and possible workarounds, please [refer here](https://github.com/nvm-sh/nvm/issues/576)9596#### Ansible97 You can use a task:9899```100- name: nvm101 shell: >102 curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash102 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash103 args:104 creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh"105```106
10 unmodified lines
117### Important Notes118119If you're running a system without prepackaged binary available, which means you're going to install nodejs or io.js from its source code, you need to make sure your system has a C++ compiler. For OS X, Xcode will work, for Debian/Ubuntu based GNU/Linux, the `build-essential` and `libssl-dev` packages work.120121**Note:** `nvm` does not support Windows (see [#284](https://github.com/creationix/nvm/issues/284)). Two alternatives exist, which are neither supported nor developed by us:121**Note:** `nvm` does not support Windows (see [#284](https://github.com/nvm-sh/nvm/issues/284)). Two alternatives exist, which are neither supported nor developed by us:122123 - [nvm-windows](https://github.com/coreybutler/nvm-windows)124 - [nodist](https://github.com/marcelklehr/nodist)125126**Note:** `nvm` does not support [Fish] either (see [#303](https://github.com/creationix/nvm/issues/303)). Alternatives exist, which are neither supported nor developed by us:126**Note:** `nvm` does not support [Fish] either (see [#303](https://github.com/nvm-sh/nvm/issues/303)). Alternatives exist, which are neither supported nor developed by us:127128 - [bass](https://github.com/edc/bass) allows you to use utilities written for Bash in fish shell129 - [fast-nvm-fish](https://github.com/brigand/fast-nvm-fish) only works with version numbers (not aliases) but doesn't significantly slow your shell startup130 - [plugin-nvm](https://github.com/derekstavis/plugin-nvm) plugin for [Oh My Fish](https://github.com/oh-my-fish/oh-my-fish), which makes nvm and its completions available in fish shell
1 unmodified line
132 - [fish-nvm](https://github.com/FabioAntunes/fish-nvm) - Wrapper around nvm for fish, delays sourcing nvm until it's actually used.133134**Note:** We still have some problems with FreeBSD, because there is no official pre-built binary for FreeBSD, and building from source may need [patches](https://www.freshports.org/www/node/files/patch-deps_v8_src_base_platform_platform-posix.cc); see the issue ticket:135136 - [[#900] [Bug] nodejs on FreeBSD may need to be patched](https://github.com/creationix/nvm/issues/900)136 - [[#900] [Bug] nodejs on FreeBSD may need to be patched](https://github.com/nvm-sh/nvm/issues/900)137 - [nodejs/node#3716](https://github.com/nodejs/node/issues/3716)138139**Note:** On OS X, if you do not have Xcode installed and you do not wish to download the ~4.3GB file, you can install the `Command Line Tools`. You can check out this blog post on how to just that:140
15 unmodified lines
156157If you have `git` installed (requires git v1.7.10+):1581591. clone this repo in the root of your user profile160 - `cd ~/` from anywhere then `git clone https://github.com/creationix/nvm.git .nvm`160 - `cd ~/` from anywhere then `git clone https://github.com/nvm-sh/nvm.git .nvm`1611. `cd ~/.nvm` and check out the latest version with `git checkout v0.34.0`1621. activate nvm by sourcing it from your shell: `. nvm.sh`163164Now add these lines to your `~/.bashrc`, `~/.profile`, or `~/.zshrc` file to have it automatically sourced upon login:
10 unmodified lines
175For a fully manual install, execute the following lines to first clone the nvm repository into `$HOME/.nvm`, and then load nvm:176177```sh178export NVM_DIR="$HOME/.nvm" && (179 git clone https://github.com/creationix/nvm.git "$NVM_DIR"179 git clone https://github.com/nvm-sh/nvm.git "$NVM_DIR"180 cd "$NVM_DIR"181 git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`182) && \. "$NVM_DIR/nvm.sh"183```
444 unmodified lines
628If 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:629630```sh631apk add -U curl bash ca-certificates openssl ncurses coreutils python2 make gcc g++ libgcc linux-headers grep util-linux binutils findutils632curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash632curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash633```634635The Node project has some desire but no concrete plans (due to the overheads of building, testing and support) to offer Alpine-compatible binaries.636
54 unmodified lines
691 - If you try to install a node version and the installation fails, be sure to delete the node downloads from src (`~/.nvm/src/`) or you might get an error when trying to reinstall them again or you might get an error like the following:692693 curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume.694695 - Where's my `sudo node`? Check out [#43](https://github.com/creationix/nvm/issues/43)695 - Where's my `sudo node`? Check out [#43](https://github.com/nvm-sh/nvm/issues/43)696697 - After the v0.8.6 release of node, nvm tries to install from binary packages. But in some systems, the official binary packages don't work due to incompatibility of shared libs. In such cases, use `-s` option to force install from source:698699```sh700nvm install -s 0.8.6701```702703 - If setting the `default` alias does not establish the node version in new shells (i.e. `nvm current` yields `system`), ensure that the system's node `PATH` is set before the `nvm.sh` source line in your shell profile (see [#658](https://github.com/creationix/nvm/issues/658))703 - If setting the `default` alias does not establish the node version in new shells (i.e. `nvm current` yields `system`), ensure that the system's node `PATH` is set before the `nvm.sh` source line in your shell profile (see [#658](https://github.com/nvm-sh/nvm/issues/658))704705## Mac OS "troubleshooting"706707**nvm node version not found in vim shell**
5 unmodified lines
713```714715More on this issue in [dotphiles/dotzsh](https://github.com/dotphiles/dotzsh#mac-os-x).716717[1]: https://github.com/creationix/nvm.git718[2]: https://github.com/creationix/nvm/blob/v0.34.0/install.sh719[3]: https://travis-ci.org/creationix/nvm720[4]: https://github.com/creationix/nvm/releases/tag/v0.34.0717[1]: https://github.com/nvm-sh/nvm.git718[2]: https://github.com/nvm-sh/nvm/blob/v0.34.0/install.sh719[3]: https://travis-ci.org/nvm-sh/nvm720[4]: https://github.com/nvm-sh/nvm/releases/tag/v0.34.0721[Urchin]: https://github.com/scraperwiki/urchin722[Fish]: http://fishshell.com
modified:ROADMAP.md+5 added-5 removed