github.com Open in urlscan Pro
140.82.121.4  Public Scan

Submitted URL: http://nvm.sh/
Effective URL: https://github.com/nvm-sh/nvm/blob/master/README.md
Submission: On March 28 via api from US — Scanned from DE

Form analysis 3 forms found in the DOM

GET

<form id="query-builder-test-form" action="" accept-charset="UTF-8" method="get">
  <query-builder data-target="qbsearch-input.queryBuilder" id="query-builder-query-builder-test" data-filter-key=":" data-view-component="true" class="QueryBuilder search-query-builder" data-min-width="300" data-catalyst="">
    <div class="FormControl FormControl--fullWidth">
      <label id="query-builder-test-label" for="query-builder-test" class="FormControl-label sr-only"> Search </label>
      <div class="QueryBuilder-StyledInput width-fit " data-target="query-builder.styledInput">
        <span id="query-builder-test-leadingvisual-wrap" class="FormControl-input-leadingVisualWrap QueryBuilder-leadingVisualWrap">
          <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-search FormControl-input-leadingVisual">
            <path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"></path>
          </svg>
        </span>
        <div data-target="query-builder.styledInputContainer" class="QueryBuilder-StyledInputContainer">
          <div aria-hidden="true" class="QueryBuilder-StyledInputContent" data-target="query-builder.styledInputContent"></div>
          <div class="QueryBuilder-InputWrapper">
            <div aria-hidden="true" class="QueryBuilder-Sizer" data-target="query-builder.sizer"><span></span></div>
            <input id="query-builder-test" name="query-builder-test" value="" autocomplete="off" type="text" role="combobox" spellcheck="false" aria-expanded="false" aria-describedby="validation-72692cf9-2bd4-448b-b7c9-d917e84c19dd"
              data-target="query-builder.input" data-action="
          input:query-builder#inputChange
          blur:query-builder#inputBlur
          keydown:query-builder#inputKeydown
          focus:query-builder#inputFocus
        " data-view-component="true" class="FormControl-input QueryBuilder-Input FormControl-medium" aria-controls="query-builder-test-results" aria-autocomplete="list" aria-haspopup="listbox" style="width: 300px;">
          </div>
        </div>
        <span class="sr-only" id="query-builder-test-clear">Clear</span>
        <button role="button" id="query-builder-test-clear-button" aria-labelledby="query-builder-test-clear query-builder-test-label" data-target="query-builder.clearButton" data-action="
                click:query-builder#clear
                focus:query-builder#clearButtonFocus
                blur:query-builder#clearButtonBlur
              " variant="small" hidden="" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium mr-1 px-2 py-0 d-flex flex-items-center rounded-1 color-fg-muted"> <svg aria-hidden="true" height="16"
            viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x-circle-fill Button-visual">
            <path
              d="M2.343 13.657A8 8 0 1 1 13.658 2.343 8 8 0 0 1 2.343 13.657ZM6.03 4.97a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042L6.94 8 4.97 9.97a.749.749 0 0 0 .326 1.275.749.749 0 0 0 .734-.215L8 9.06l1.97 1.97a.749.749 0 0 0 1.275-.326.749.749 0 0 0-.215-.734L9.06 8l1.97-1.97a.749.749 0 0 0-.326-1.275.749.749 0 0 0-.734.215L8 6.94Z">
            </path>
          </svg>
        </button>
      </div>
      <template id="search-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-search">
          <path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"></path>
        </svg>
      </template>
      <template id="code-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-code">
          <path
            d="m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z">
          </path>
        </svg>
      </template>
      <template id="file-code-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-file-code">
          <path
            d="M4 1.75C4 .784 4.784 0 5.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 14.25 15h-9a.75.75 0 0 1 0-1.5h9a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 10 4.25V1.5H5.75a.25.25 0 0 0-.25.25v2.5a.75.75 0 0 1-1.5 0Zm1.72 4.97a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.47-1.47-1.47-1.47a.75.75 0 0 1 0-1.06ZM3.28 7.78 1.81 9.25l1.47 1.47a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-2-2a.75.75 0 0 1 0-1.06l2-2a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Zm8.22-6.218V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z">
          </path>
        </svg>
      </template>
      <template id="history-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-history">
          <path
            d="m.427 1.927 1.215 1.215a8.002 8.002 0 1 1-1.6 5.685.75.75 0 1 1 1.493-.154 6.5 6.5 0 1 0 1.18-4.458l1.358 1.358A.25.25 0 0 1 3.896 6H.25A.25.25 0 0 1 0 5.75V2.104a.25.25 0 0 1 .427-.177ZM7.75 4a.75.75 0 0 1 .75.75v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5A.75.75 0 0 1 7.75 4Z">
          </path>
        </svg>
      </template>
      <template id="repo-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-repo">
          <path
            d="M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 1 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5Zm10.5-1h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 4.5 9h8ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2Z">
          </path>
        </svg>
      </template>
      <template id="bookmark-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-bookmark">
          <path
            d="M3 2.75C3 1.784 3.784 1 4.75 1h6.5c.966 0 1.75.784 1.75 1.75v11.5a.75.75 0 0 1-1.227.579L8 11.722l-3.773 3.107A.751.751 0 0 1 3 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.91l3.023-2.489a.75.75 0 0 1 .954 0l3.023 2.49V2.75a.25.25 0 0 0-.25-.25Z">
          </path>
        </svg>
      </template>
      <template id="plus-circle-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-plus-circle">
          <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm7.25-3.25v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5a.75.75 0 0 1 1.5 0Z"></path>
        </svg>
      </template>
      <template id="circle-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-dot-fill">
          <path d="M8 4a4 4 0 1 1 0 8 4 4 0 0 1 0-8Z"></path>
        </svg>
      </template>
      <template id="trash-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-trash">
          <path
            d="M11 1.75V3h2.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75ZM4.496 6.675l.66 6.6a.25.25 0 0 0 .249.225h5.19a.25.25 0 0 0 .249-.225l.66-6.6a.75.75 0 0 1 1.492.149l-.66 6.6A1.748 1.748 0 0 1 10.595 15h-5.19a1.75 1.75 0 0 1-1.741-1.575l-.66-6.6a.75.75 0 1 1 1.492-.15ZM6.5 1.75V3h3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Z">
          </path>
        </svg>
      </template>
      <template id="team-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-people">
          <path
            d="M2 5.5a3.5 3.5 0 1 1 5.898 2.549 5.508 5.508 0 0 1 3.034 4.084.75.75 0 1 1-1.482.235 4 4 0 0 0-7.9 0 .75.75 0 0 1-1.482-.236A5.507 5.507 0 0 1 3.102 8.05 3.493 3.493 0 0 1 2 5.5ZM11 4a3.001 3.001 0 0 1 2.22 5.018 5.01 5.01 0 0 1 2.56 3.012.749.749 0 0 1-.885.954.752.752 0 0 1-.549-.514 3.507 3.507 0 0 0-2.522-2.372.75.75 0 0 1-.574-.73v-.352a.75.75 0 0 1 .416-.672A1.5 1.5 0 0 0 11 5.5.75.75 0 0 1 11 4Zm-5.5-.5a2 2 0 1 0-.001 3.999A2 2 0 0 0 5.5 3.5Z">
          </path>
        </svg>
      </template>
      <template id="project-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-project">
          <path
            d="M1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0ZM1.5 1.75v12.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25ZM11.75 3a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-1.5 0v-7.5a.75.75 0 0 1 .75-.75Zm-8.25.75a.75.75 0 0 1 1.5 0v5.5a.75.75 0 0 1-1.5 0ZM8 3a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 3Z">
          </path>
        </svg>
      </template>
      <template id="pencil-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-pencil">
          <path
            d="M11.013 1.427a1.75 1.75 0 0 1 2.474 0l1.086 1.086a1.75 1.75 0 0 1 0 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 0 1-.927-.928l.929-3.25c.081-.286.235-.547.445-.758l8.61-8.61Zm.176 4.823L9.75 4.81l-6.286 6.287a.253.253 0 0 0-.064.108l-.558 1.953 1.953-.558a.253.253 0 0 0 .108-.064Zm1.238-3.763a.25.25 0 0 0-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 0 0 0-.354Z">
          </path>
        </svg>
      </template>
      <template id="copilot-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copilot">
          <path
            d="M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z">
          </path>
          <path d="M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"></path>
        </svg>
      </template>
      <template id="workflow-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-workflow">
          <path
            d="M0 1.75C0 .784.784 0 1.75 0h3.5C6.216 0 7 .784 7 1.75v3.5A1.75 1.75 0 0 1 5.25 7H4v4a1 1 0 0 0 1 1h4v-1.25C9 9.784 9.784 9 10.75 9h3.5c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 14.25 16h-3.5A1.75 1.75 0 0 1 9 14.25v-.75H5A2.5 2.5 0 0 1 2.5 11V7h-.75A1.75 1.75 0 0 1 0 5.25Zm1.75-.25a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25Zm9 9a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25Z">
          </path>
        </svg>
      </template>
      <template id="book-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-book">
          <path
            d="M0 1.75A.75.75 0 0 1 .75 1h4.253c1.227 0 2.317.59 3 1.501A3.743 3.743 0 0 1 11.006 1h4.245a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75h-4.507a2.25 2.25 0 0 0-1.591.659l-.622.621a.75.75 0 0 1-1.06 0l-.622-.621A2.25 2.25 0 0 0 5.258 13H.75a.75.75 0 0 1-.75-.75Zm7.251 10.324.004-5.073-.002-2.253A2.25 2.25 0 0 0 5.003 2.5H1.5v9h3.757a3.75 3.75 0 0 1 1.994.574ZM8.755 4.75l-.004 7.322a3.752 3.752 0 0 1 1.992-.572H14.5v-9h-3.495a2.25 2.25 0 0 0-2.25 2.25Z">
          </path>
        </svg>
      </template>
      <template id="code-review-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-code-review">
          <path
            d="M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 13H8.061l-2.574 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25v-8.5C0 1.784.784 1 1.75 1ZM1.5 2.75v8.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Zm5.28 1.72a.75.75 0 0 1 0 1.06L5.31 7l1.47 1.47a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-2-2a.75.75 0 0 1 0-1.06l2-2a.75.75 0 0 1 1.06 0Zm2.44 0a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L10.69 7 9.22 5.53a.75.75 0 0 1 0-1.06Z">
          </path>
        </svg>
      </template>
      <template id="codespaces-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-codespaces">
          <path
            d="M0 11.25c0-.966.784-1.75 1.75-1.75h12.5c.966 0 1.75.784 1.75 1.75v3A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm2-9.5C2 .784 2.784 0 3.75 0h8.5C13.216 0 14 .784 14 1.75v5a1.75 1.75 0 0 1-1.75 1.75h-8.5A1.75 1.75 0 0 1 2 6.75Zm1.75-.25a.25.25 0 0 0-.25.25v5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-5a.25.25 0 0 0-.25-.25Zm-2 9.5a.25.25 0 0 0-.25.25v3c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-3a.25.25 0 0 0-.25-.25Z">
          </path>
          <path d="M7 12.75a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Zm-4 0a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75Z"></path>
        </svg>
      </template>
      <template id="comment-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-comment">
          <path
            d="M1 2.75C1 1.784 1.784 1 2.75 1h10.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 13.25 12H9.06l-2.573 2.573A1.458 1.458 0 0 1 4 13.543V12H2.75A1.75 1.75 0 0 1 1 10.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h4.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
          </path>
        </svg>
      </template>
      <template id="comment-discussion-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-comment-discussion">
          <path
            d="M1.75 1h8.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 10.25 10H7.061l-2.574 2.573A1.458 1.458 0 0 1 2 11.543V10h-.25A1.75 1.75 0 0 1 0 8.25v-5.5C0 1.784.784 1 1.75 1ZM1.5 2.75v5.5c0 .138.112.25.25.25h1a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h3.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25Zm13 2a.25.25 0 0 0-.25-.25h-.5a.75.75 0 0 1 0-1.5h.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 14.25 12H14v1.543a1.458 1.458 0 0 1-2.487 1.03L9.22 12.28a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l2.22 2.22v-2.19a.75.75 0 0 1 .75-.75h1a.25.25 0 0 0 .25-.25Z">
          </path>
        </svg>
      </template>
      <template id="organization-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-organization">
          <path
            d="M1.75 16A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0h8.5C11.216 0 12 .784 12 1.75v12.5c0 .085-.006.168-.018.25h2.268a.25.25 0 0 0 .25-.25V8.285a.25.25 0 0 0-.111-.208l-1.055-.703a.749.749 0 1 1 .832-1.248l1.055.703c.487.325.779.871.779 1.456v5.965A1.75 1.75 0 0 1 14.25 16h-3.5a.766.766 0 0 1-.197-.026c-.099.017-.2.026-.303.026h-3a.75.75 0 0 1-.75-.75V14h-1v1.25a.75.75 0 0 1-.75.75Zm-.25-1.75c0 .138.112.25.25.25H4v-1.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v1.25h2.25a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25ZM3.75 6h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5ZM3 3.75A.75.75 0 0 1 3.75 3h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 3 3.75Zm4 3A.75.75 0 0 1 7.75 6h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 7 6.75ZM7.75 3h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5ZM3 9.75A.75.75 0 0 1 3.75 9h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 3 9.75ZM7.75 9h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5Z">
          </path>
        </svg>
      </template>
      <template id="rocket-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-rocket">
          <path
            d="M14.064 0h.186C15.216 0 16 .784 16 1.75v.186a8.752 8.752 0 0 1-2.564 6.186l-.458.459c-.314.314-.641.616-.979.904v3.207c0 .608-.315 1.172-.833 1.49l-2.774 1.707a.749.749 0 0 1-1.11-.418l-.954-3.102a1.214 1.214 0 0 1-.145-.125L3.754 9.816a1.218 1.218 0 0 1-.124-.145L.528 8.717a.749.749 0 0 1-.418-1.11l1.71-2.774A1.748 1.748 0 0 1 3.31 4h3.204c.288-.338.59-.665.904-.979l.459-.458A8.749 8.749 0 0 1 14.064 0ZM8.938 3.623h-.002l-.458.458c-.76.76-1.437 1.598-2.02 2.5l-1.5 2.317 2.143 2.143 2.317-1.5c.902-.583 1.74-1.26 2.499-2.02l.459-.458a7.25 7.25 0 0 0 2.123-5.127V1.75a.25.25 0 0 0-.25-.25h-.186a7.249 7.249 0 0 0-5.125 2.123ZM3.56 14.56c-.732.732-2.334 1.045-3.005 1.148a.234.234 0 0 1-.201-.064.234.234 0 0 1-.064-.201c.103-.671.416-2.273 1.15-3.003a1.502 1.502 0 1 1 2.12 2.12Zm6.94-3.935c-.088.06-.177.118-.266.175l-2.35 1.521.548 1.783 1.949-1.2a.25.25 0 0 0 .119-.213ZM3.678 8.116 5.2 5.766c.058-.09.117-.178.176-.266H3.309a.25.25 0 0 0-.213.119l-1.2 1.95ZM12 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z">
          </path>
        </svg>
      </template>
      <template id="shield-check-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-shield-check">
          <path
            d="m8.533.133 5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.697 1.697 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 0 1 1.217-1.667l5.25-1.68a1.748 1.748 0 0 1 1.066 0Zm-.61 1.429.001.001-5.25 1.68a.251.251 0 0 0-.174.237V7c0 1.36.275 2.666 1.057 3.859.784 1.194 2.121 2.342 4.366 3.298a.196.196 0 0 0 .154 0c2.245-.957 3.582-2.103 4.366-3.297C13.225 9.666 13.5 8.358 13.5 7V3.48a.25.25 0 0 0-.174-.238l-5.25-1.68a.25.25 0 0 0-.153 0ZM11.28 6.28l-3.5 3.5a.75.75 0 0 1-1.06 0l-1.5-1.5a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l.97.97 2.97-2.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z">
          </path>
        </svg>
      </template>
      <template id="heart-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-heart">
          <path
            d="m8 14.25.345.666a.75.75 0 0 1-.69 0l-.008-.004-.018-.01a7.152 7.152 0 0 1-.31-.17 22.055 22.055 0 0 1-3.434-2.414C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.045 5.231-3.885 6.818a22.066 22.066 0 0 1-3.744 2.584l-.018.01-.006.003h-.002ZM4.25 2.5c-1.336 0-2.75 1.164-2.75 3 0 2.15 1.58 4.144 3.365 5.682A20.58 20.58 0 0 0 8 13.393a20.58 20.58 0 0 0 3.135-2.211C12.92 9.644 14.5 7.65 14.5 5.5c0-1.836-1.414-3-2.75-3-1.373 0-2.609.986-3.029 2.456a.749.749 0 0 1-1.442 0C6.859 3.486 5.623 2.5 4.25 2.5Z">
          </path>
        </svg>
      </template>
      <template id="server-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-server">
          <path
            d="M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v4c0 .372-.116.717-.314 1 .198.283.314.628.314 1v4a1.75 1.75 0 0 1-1.75 1.75H1.75A1.75 1.75 0 0 1 0 12.75v-4c0-.358.109-.707.314-1a1.739 1.739 0 0 1-.314-1v-4C0 1.784.784 1 1.75 1ZM1.5 2.75v4c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-4a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Zm.25 5.75a.25.25 0 0 0-.25.25v4c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-4a.25.25 0 0 0-.25-.25ZM7 4.75A.75.75 0 0 1 7.75 4h4.5a.75.75 0 0 1 0 1.5h-4.5A.75.75 0 0 1 7 4.75ZM7.75 10h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM3 4.75A.75.75 0 0 1 3.75 4h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 3 4.75ZM3.75 10h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5Z">
          </path>
        </svg>
      </template>
      <template id="globe-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-globe">
          <path
            d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM5.78 8.75a9.64 9.64 0 0 0 1.363 4.177c.255.426.542.832.857 1.215.245-.296.551-.705.857-1.215A9.64 9.64 0 0 0 10.22 8.75Zm4.44-1.5a9.64 9.64 0 0 0-1.363-4.177c-.307-.51-.612-.919-.857-1.215a9.927 9.927 0 0 0-.857 1.215A9.64 9.64 0 0 0 5.78 7.25Zm-5.944 1.5H1.543a6.507 6.507 0 0 0 4.666 5.5c-.123-.181-.24-.365-.352-.552-.715-1.192-1.437-2.874-1.581-4.948Zm-2.733-1.5h2.733c.144-2.074.866-3.756 1.58-4.948.12-.197.237-.381.353-.552a6.507 6.507 0 0 0-4.666 5.5Zm10.181 1.5c-.144 2.074-.866 3.756-1.58 4.948-.12.197-.237.381-.353.552a6.507 6.507 0 0 0 4.666-5.5Zm2.733-1.5a6.507 6.507 0 0 0-4.666-5.5c.123.181.24.365.353.552.714 1.192 1.436 2.874 1.58 4.948Z">
          </path>
        </svg>
      </template>
      <template id="issue-opened-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-issue-opened">
          <path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path>
          <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"></path>
        </svg>
      </template>
      <template id="device-mobile-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-device-mobile">
          <path
            d="M3.75 0h8.5C13.216 0 14 .784 14 1.75v12.5A1.75 1.75 0 0 1 12.25 16h-8.5A1.75 1.75 0 0 1 2 14.25V1.75C2 .784 2.784 0 3.75 0ZM3.5 1.75v12.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25ZM8 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z">
          </path>
        </svg>
      </template>
      <template id="package-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-package">
          <path
            d="m8.878.392 5.25 3.045c.54.314.872.89.872 1.514v6.098a1.75 1.75 0 0 1-.872 1.514l-5.25 3.045a1.75 1.75 0 0 1-1.756 0l-5.25-3.045A1.75 1.75 0 0 1 1 11.049V4.951c0-.624.332-1.201.872-1.514L7.122.392a1.75 1.75 0 0 1 1.756 0ZM7.875 1.69l-4.63 2.685L8 7.133l4.755-2.758-4.63-2.685a.248.248 0 0 0-.25 0ZM2.5 5.677v5.372c0 .09.047.171.125.216l4.625 2.683V8.432Zm6.25 8.271 4.625-2.683a.25.25 0 0 0 .125-.216V5.677L8.75 8.432Z">
          </path>
        </svg>
      </template>
      <template id="credit-card-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-credit-card">
          <path d="M10.75 9a.75.75 0 0 0 0 1.5h1.5a.75.75 0 0 0 0-1.5h-1.5Z"></path>
          <path
            d="M0 3.75C0 2.784.784 2 1.75 2h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 14H1.75A1.75 1.75 0 0 1 0 12.25ZM14.5 6.5h-13v5.75c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25Zm0-2.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25V5h13Z">
          </path>
        </svg>
      </template>
      <template id="play-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-play">
          <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm4.879-2.773 4.264 2.559a.25.25 0 0 1 0 .428l-4.264 2.559A.25.25 0 0 1 6 10.559V5.442a.25.25 0 0 1 .379-.215Z"></path>
        </svg>
      </template>
      <template id="gift-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-gift">
          <path
            d="M2 2.75A2.75 2.75 0 0 1 4.75 0c.983 0 1.873.42 2.57 1.232.268.318.497.668.68 1.042.183-.375.411-.725.68-1.044C9.376.42 10.266 0 11.25 0a2.75 2.75 0 0 1 2.45 4h.55c.966 0 1.75.784 1.75 1.75v2c0 .698-.409 1.301-1 1.582v4.918A1.75 1.75 0 0 1 13.25 16H2.75A1.75 1.75 0 0 1 1 14.25V9.332C.409 9.05 0 8.448 0 7.75v-2C0 4.784.784 4 1.75 4h.55c-.192-.375-.3-.8-.3-1.25ZM7.25 9.5H2.5v4.75c0 .138.112.25.25.25h4.5Zm1.5 0v5h4.5a.25.25 0 0 0 .25-.25V9.5Zm0-4V8h5.5a.25.25 0 0 0 .25-.25v-2a.25.25 0 0 0-.25-.25Zm-7 0a.25.25 0 0 0-.25.25v2c0 .138.112.25.25.25h5.5V5.5h-5.5Zm3-4a1.25 1.25 0 0 0 0 2.5h2.309c-.233-.818-.542-1.401-.878-1.793-.43-.502-.915-.707-1.431-.707ZM8.941 4h2.309a1.25 1.25 0 0 0 0-2.5c-.516 0-1 .205-1.43.707-.337.392-.646.975-.879 1.793Z">
          </path>
        </svg>
      </template>
      <template id="code-square-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-code-square">
          <path
            d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25Zm7.47 3.97a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L10.69 8 9.22 6.53a.75.75 0 0 1 0-1.06ZM6.78 6.53 5.31 8l1.47 1.47a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-2-2a.75.75 0 0 1 0-1.06l2-2a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z">
          </path>
        </svg>
      </template>
      <template id="device-desktop-icon">
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-device-desktop">
          <path
            d="M14.25 1c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 14.25 12h-3.727c.099 1.041.52 1.872 1.292 2.757A.752.752 0 0 1 11.25 16h-6.5a.75.75 0 0 1-.565-1.243c.772-.885 1.192-1.716 1.292-2.757H1.75A1.75 1.75 0 0 1 0 10.25v-7.5C0 1.784.784 1 1.75 1ZM1.75 2.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25ZM9.018 12H6.982a5.72 5.72 0 0 1-.765 2.5h3.566a5.72 5.72 0 0 1-.765-2.5Z">
          </path>
        </svg>
      </template>
      <div class="position-relative">
        <ul role="listbox" class="ActionListWrap QueryBuilder-ListWrap" aria-label="Suggestions" data-action="
                    combobox-commit:query-builder#comboboxCommit
                    mousedown:query-builder#resultsMousedown
                  " data-target="query-builder.resultsList" data-persist-list="false" id="query-builder-test-results"></ul>
      </div>
      <div class="FormControl-inlineValidation" id="validation-72692cf9-2bd4-448b-b7c9-d917e84c19dd" hidden="hidden">
        <span class="FormControl-inlineValidation--visual">
          <svg aria-hidden="true" height="12" viewBox="0 0 12 12" version="1.1" width="12" data-view-component="true" class="octicon octicon-alert-fill">
            <path d="M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"></path>
          </svg>
        </span>
        <span></span>
      </div>
    </div>
    <div data-target="query-builder.screenReaderFeedback" aria-live="polite" aria-atomic="true" class="sr-only"></div>
  </query-builder>
</form>

POST /search/feedback

<form id="code-search-feedback-form" data-turbo="false" action="/search/feedback" accept-charset="UTF-8" method="post"><input type="hidden" data-csrf="true" name="authenticity_token"
    value="B8pd052gZxl4II8iOW4lZQLqQgO+b5Aqr+jeZmiifWzUPDFILdb5F05WygHrjE8TKUTnxUca1VxFdlLA+M/ajw==">
  <p>We read every piece of feedback, and take your input very seriously.</p>
  <textarea name="feedback" class="form-control width-full mb-2" style="height: 120px" id="feedback"></textarea>
  <input name="include_email" id="include_email" aria-label="Include my email address so I can be contacted" class="form-control mr-2" type="checkbox">
  <label for="include_email" style="font-weight: normal">Include my email address so I can be contacted</label>
</form>

POST /search/custom_scopes

<form id="custom-scopes-dialog-form" data-turbo="false" action="/search/custom_scopes" accept-charset="UTF-8" method="post"><input type="hidden" data-csrf="true" name="authenticity_token"
    value="jeZTgHQyr2viK3zwIjfVFgkNK7fho/y4hzwP4+FLZLi+AjatZizdqoSS4K/7UCBHYLowd+gZYci7ZuiD2ltKtw==">
  <div data-target="custom-scopes.customScopesModalDialogFlash"></div>
  <input type="hidden" id="custom_scope_id" name="custom_scope_id" data-target="custom-scopes.customScopesIdField">
  <div class="form-group">
    <label for="custom_scope_name">Name</label>
    <auto-check src="/search/custom_scopes/check_name" required="">
      <input type="text" name="custom_scope_name" id="custom_scope_name" data-target="custom-scopes.customScopesNameField" class="form-control" autocomplete="off" placeholder="github-ruby" required="" maxlength="50" spellcheck="false">
      <input type="hidden" data-csrf="true" value="3U2KNS7ZNp8WAHyH2lB75exNmU4n/4WKyZVdn1R1seAsunLKh/bPStv7JBFfkTBW13ZYMlPydG0qa37TCiGEaw==">
    </auto-check>
  </div>
  <div class="form-group">
    <label for="custom_scope_query">Query</label>
    <input type="text" name="custom_scope_query" id="custom_scope_query" data-target="custom-scopes.customScopesQueryField" class="form-control" autocomplete="off" placeholder="(repo:mona/a OR repo:mona/b) AND lang:python" required=""
      maxlength="500">
  </div>
  <p class="text-small color-fg-muted"> To see all available qualifiers, see our <a class="Link--inTextBlock" href="https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax">documentation</a>. </p>
</form>

Text Content

Skip to content

Toggle navigation
Sign in

 * Product
    * Actions
      Automate any workflow
    * Packages
      Host and manage packages
    * Security
      Find and fix vulnerabilities
    * Codespaces
      Instant dev environments
    * Copilot
      Write better code with AI
    * Code review
      Manage code changes
    * Issues
      Plan and track work
    * Discussions
      Collaborate outside of code
   
   Explore
    * All features
    * Documentation
    * GitHub Skills
    * Blog

 * Solutions
   For
    * Enterprise
    * Teams
    * Startups
    * Education
   
   By Solution
    * CI/CD & Automation
    * DevOps
    * DevSecOps
   
   Resources
    * Learning Pathways
    * White papers, Ebooks, Webinars
    * Customer Stories
    * Partners

 * Open Source
    * GitHub Sponsors
      Fund open source developers
   
    * The ReadME Project
      GitHub community articles
   
   Repositories
    * Topics
    * Trending
    * Collections

 * Pricing


Search or jump to...



SEARCH CODE, REPOSITORIES, USERS, ISSUES, PULL REQUESTS...

Search

Clear



Search syntax tips




PROVIDE FEEDBACK



We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted
Cancel Submit feedback


SAVED SEARCHES


USE SAVED SEARCHES TO FILTER YOUR RESULTS MORE QUICKLY


Name
Query

To see all available qualifiers, see our documentation.


Cancel Create saved search
Sign in
Sign up
You signed in with another tab or window. Reload to refresh your session. You
signed out in another tab or window. Reload to refresh your session. You
switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert

{{ message }}
nvm-sh / nvm Public
 * Sponsor
   
   
   SPONSOR NVM-SH/NVM
   
   
   
   GITHUB SPONSORS
   
   Learn more about Sponsors
   
   ljharb
   
   ljharb
   
   Sponsor
   
   EXTERNAL LINKS
   
   tidelift.com/funding/github/npm/nvm
   
   Learn more about funding links in repositories.
   
   Report abuse

 * Notifications
 * Fork 7.6k
 * Star 75k
 * 


 * Code
 * Issues 348
 * Pull requests 60
 * Actions
 * Security
 * Insights

Additional navigation options
 * Code
 * Issues
 * Pull requests
 * Actions
 * Security
 * Insights


FILES

 master


 * 
   .github
 * 
   test
 * 
   .dockerignore
 * 
   .editorconfig
 * 
   .gitattributes
 * 
   .gitignore
 * 
   .mailmap
 * 
   .npmrc
 * 
   .travis.yml
 * 
   CODE_OF_CONDUCT.md
 * 
   CONTRIBUTING.md
 * 
   Dockerfile
 * 
   GOVERNANCE.md
 * 
   LICENSE.md
 * 
   Makefile
 * 
   PROJECT_CHARTER.md
 * 
   README.md
 * 
   ROADMAP.md
 * 
   bash_completion
 * 
   install.sh
 * 
   nvm-exec
 * 
   nvm.sh
 * 
   package.json
 * 
   rename_test.sh
 * 
   update_test_mocks.sh




BREADCRUMBS

 1. nvm

/


README.MD

Blame
Blame



LATEST COMMIT

huyz
and
ljharb
[readme] Fix uninstall instructions
294ff9e · 


HISTORY

History

1062 lines (732 loc) · 45.8 KB


BREADCRUMBS

 1. nvm

/


README.MD

Top


FILE METADATA AND CONTROLS

 * Preview
 * Code
 * Blame

1062 lines (732 loc) · 45.8 KB
Raw




NODE VERSION MANAGER


TABLE OF CONTENTS

 * Intro
 * About
 * Installing and Updating
   * Install & Update Script
     * Additional Notes
     * Troubleshooting on Linux
     * Troubleshooting on macOS
     * Ansible
   * Verify Installation
   * Important Notes
   * Git Install
   * Manual Install
   * Manual Upgrade
 * Usage
   * Long-term Support
   * Migrating Global Packages While Installing
   * Default Global Packages From File While Installing
   * io.js
   * System Version of Node
   * Listing Versions
   * Setting Custom Colors
     * Persisting custom colors
     * Suppressing colorized output
   * Restoring PATH
   * Set default node version
   * Use a mirror of node binaries
   * .nvmrc
   * Deeper Shell Integration
     * Calling nvm use automatically in a directory with a .nvmrc file
       * bash
       * zsh
       * fish
 * Running Tests
 * Environment variables
 * Bash Completion
   * Usage
 * Compatibility Issues
 * Installing nvm on Alpine Linux
   * Alpine Linux 3.13+
   * Alpine Linux 3.5 - 3.12
 * Uninstalling / Removal
   * Manual Uninstall
 * Docker For Development Environment
 * Problems
 * macOS Troubleshooting
 * WSL Troubleshooting
 * Maintainers
 * License
 * Copyright notice


INTRO

nvm allows you to quickly install and use different versions of node via the
command line.

Example:

$ nvm use 16
Now using node v16.9.1 (npm v7.21.1)
$ node -v
v16.9.1
$ nvm use 14
Now using node v14.18.0 (npm v6.14.15)
$ node -v
v14.18.0
$ nvm install 12
Now using node v12.22.6 (npm v6.14.5)
$ node -v
v12.22.6



Simple as that!


ABOUT

nvm is a version manager for node.js, designed to be installed per-user, and
invoked per-shell. nvm works on any POSIX-compliant shell (sh, dash, ksh, zsh,
bash), in particular on these platforms: unix, macOS, and windows WSL.




INSTALLING AND UPDATING


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.39.7/install.sh | bash



wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash



Running 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).



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



ADDITIONAL NOTES

 * If the environment variable $XDG_CONFIG_HOME is present, it will place the
   nvm files there.

 * You can add --no-use to the end of the above script (...nvm.sh --no-use) to
   postpone using nvm until you manually use it.

 * You can customize the install source, directory, profile, and version using
   the NVM_SOURCE, NVM_DIR, PROFILE, and NODE_VERSION variables. Eg: curl ... |
   NVM_DIR="path/to/nvm". Ensure that the NVM_DIR does not contain a trailing
   slash.

 * The installer can use git, curl, or wget to download nvm, whichever is
   available.

 * You can instruct the installer to not edit your shell config (for example if
   you already get completions via a zsh nvm plugin) by setting
   PROFILE=/dev/null before running the install.sh script. Here's an example
   one-line command to do that: PROFILE=/dev/null bash -c 'curl -o-
   https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash'

TROUBLESHOOTING ON LINUX

On Linux, after running the install script, if you get nvm: command not found or
see no feedback from your terminal after you type command -v nvm, simply close
your current terminal, open a new terminal, and try verifying again.
Alternatively, you can run the following commands for the different shells on
the command line:

bash: source ~/.bashrc

zsh: source ~/.zshrc

ksh: . ~/.profile

These should pick up the nvm command.

TROUBLESHOOTING ON MACOS

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)

If you get nvm: command not found after running the install script, one of the
following might be the reason:

 * Since macOS 10.15, the default shell is zsh and nvm will look for .zshrc to
   update, none is installed by default. Create one with touch ~/.zshrc and run
   the install script again.

 * If you use bash, the previous default shell, your system may not have
   .bash_profile or .bashrc files where the command is set up. Create one of
   them with touch ~/.bash_profile or touch ~/.bashrc and run the install script
   again. Then, run . ~/.bash_profile or . ~/.bashrc to pick up the nvm command.

 * You have previously used bash, but you have zsh installed. You need to
   manually add these lines to ~/.zshrc and run . ~/.zshrc.

 * You might need to restart your terminal instance or run . ~/.nvm/nvm.sh.
   Restarting your terminal/opening a new tab/window, or running the source
   command will load the command and the new configuration.

 * If the above didn't help, you might need to restart your terminal instance.
   Try opening a new tab/window in your terminal and retry.

If the above doesn't fix the problem, you may try the following:

 * If you use bash, it may be that your .bash_profile (or ~/.profile) does not
   source your ~/.bashrc properly. You could fix this by adding source
   ~/<your_profile_file> to it or following the next step below.

 * Try adding the snippet from the install section, that finds the correct nvm
   directory and loads nvm, to your usual profile (~/.bash_profile, ~/.zshrc,
   ~/.profile, or ~/.bashrc).

 * For more information about this issue and possible workarounds, please refer
   here

Note For Macs with the Apple Silicon chip, node started offering arm64 arch
Darwin packages since v16.0.0 and experimental arm64 support when compiling from
source since v14.17.0. If you are facing issues installing node using nvm, you
may want to update to one of those versions or later.

ANSIBLE

You can use a task:

- name: Install nvm
  ansible.builtin.shell: >
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
  args:
    creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh"




VERIFY INSTALLATION

To verify that nvm has been installed, do:

command -v nvm



which should output nvm if the installation was successful. Please note that
which nvm will not work, since nvm is a sourced shell function, not an
executable binary.

Note: On Linux, after running the install script, if you get nvm: command not
found or see no feedback from your terminal after you type command -v nvm,
simply close your current terminal, open a new terminal, and try verifying
again.


IMPORTANT NOTES

If you're running a system without prepackaged binary available, which means
you're going to install node 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.

Note: nvm also supports Windows in some cases. It should work through WSL
(Windows Subsystem for Linux) depending on the version of WSL. It should also
work with GitBash (MSYS) or Cygwin. Otherwise, for Windows, a few alternatives
exist, which are neither supported nor developed by us:

 * nvm-windows
 * nodist
 * nvs

Note: nvm does not support Fish either (see #303). Alternatives exist, which are
neither supported nor developed by us:

 * bass allows you to use utilities written for Bash in fish shell
 * fast-nvm-fish only works with version numbers (not aliases) but doesn't
   significantly slow your shell startup
 * plugin-nvm plugin for Oh My Fish, which makes nvm and its completions
   available in fish shell
 * fnm - fisherman-based version manager for fish
 * fish-nvm - Wrapper around nvm for fish, delays sourcing nvm until it's
   actually used.

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; see the
issue ticket:

 * [#900] [Bug] node on FreeBSD may need to be patched
 * nodejs/node#3716

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:

 * How to Install Command Line Tools in OS X Mavericks & Yosemite (Without
   Xcode)

Note: On OS X, if you have/had a "system" node installed and want to install
modules globally, keep in mind that:

 * When using nvm you do not need sudo to globally install a module with npm -g,
   so instead of doing sudo npm install -g grunt, do instead npm install -g
   grunt
 * If you have an ~/.npmrc file, make sure it does not contain any prefix
   settings (which is not compatible with nvm)
 * You can (but should not?) keep your previous "system" node install, but nvm
   will only be available to your user account (the one used to install nvm).
   This might cause version mismatches, as other users will be using
   /usr/local/lib/node_modules/* VS your user account using
   ~/.nvm/versions/node/vX.X.X/lib/node_modules/*

Homebrew installation is not supported. If you have issues with
homebrew-installed nvm, please brew uninstall it, and install it using the
instructions below, before filing an issue.

Note: If you're using zsh you can easily install nvm as a zsh plugin. Install
zsh-nvm and run nvm upgrade to upgrade.

Note: Git versions before v1.7 may face a problem of cloning nvm source from
GitHub via https protocol, and there is also different behavior of git before
v1.6, and git prior to v1.17.10 can not clone tags, so the minimum required git
version is v1.7.10. If you are interested in the problem we mentioned here,
please refer to GitHub's HTTPS cloning errors article.


GIT INSTALL

If you have git installed (requires git v1.7.10+):

 1. clone this repo in the root of your user profile
    * cd ~/ from anywhere then git clone https://github.com/nvm-sh/nvm.git .nvm
 2. cd ~/.nvm and check out the latest version with git checkout v0.39.7
 3. activate nvm by sourcing it from your shell: . ./nvm.sh

Now add these lines to your ~/.bashrc, ~/.profile, or ~/.zshrc file to have it
automatically sourced upon login: (you may have to add to more than one of the
above files)

export NVM_DIR="$HOME/.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




MANUAL INSTALL

For a fully manual install, execute the following lines to first clone the nvm
repository into $HOME/.nvm, and then load nvm:

export NVM_DIR="$HOME/.nvm" && (
  git clone https://github.com/nvm-sh/nvm.git "$NVM_DIR"
  cd "$NVM_DIR"
  git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
) && \. "$NVM_DIR/nvm.sh"



Now add these lines to your ~/.bashrc, ~/.profile, or ~/.zshrc file to have it
automatically sourced upon login: (you may have to add to more than one of the
above files)

export NVM_DIR="$HOME/.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




MANUAL UPGRADE

For manual upgrade with git (requires git v1.7.10+):

 1. change to the $NVM_DIR
 2. pull down the latest changes
 3. check out the latest version
 4. activate the new version

(
  cd "$NVM_DIR"
  git fetch --tags origin
  git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
) && \. "$NVM_DIR/nvm.sh"




USAGE

To download, compile, and install the latest release of node, do this:

nvm install node # "node" is an alias for the latest version



To install a specific version of node:

nvm install 14.7.0 # or 16.3.0, 12.22.1, etc



The first version installed becomes the default. New shells will start with the
default version of node (e.g., nvm alias default).

You can list available versions using ls-remote:

nvm ls-remote



And then in any new shell just use the installed version:

nvm use node



Or you can just run it:

nvm run node --version



Or, you can run any arbitrary command in a subshell with the desired version of
node:

nvm exec 4.2 node --version



You can also get the path to the executable to where it was installed:

nvm which 12.22



In place of a version pointer like "14.7" or "16.3" or "12.22.1", you can use
the following special default aliases with nvm install, nvm use, nvm run, nvm
exec, nvm which, etc:

 * node: this installs the latest version of node
 * iojs: this installs the latest version of io.js
 * stable: this alias is deprecated, and only truly applies to node v0.12 and
   earlier. Currently, this is an alias for node.
 * unstable: this alias points to node v0.11 - the last "unstable" node release,
   since post-1.0, all node versions are stable. (in SemVer, versions
   communicate breakage, not stability).


LONG-TERM SUPPORT

Node has a schedule for long-term support (LTS) You can reference LTS versions
in aliases and .nvmrc files with the notation lts/* for the latest LTS, and
lts/argon for LTS releases from the "argon" line, for example. In addition, the
following commands support LTS arguments:

 * nvm install --lts / nvm install --lts=argon / nvm install 'lts/*' / nvm
   install lts/argon
 * nvm uninstall --lts / nvm uninstall --lts=argon / nvm uninstall 'lts/*' / nvm
   uninstall lts/argon
 * nvm use --lts / nvm use --lts=argon / nvm use 'lts/*' / nvm use lts/argon
 * nvm exec --lts / nvm exec --lts=argon / nvm exec 'lts/*' / nvm exec lts/argon
 * nvm run --lts / nvm run --lts=argon / nvm run 'lts/*' / nvm run lts/argon
 * nvm ls-remote --lts / nvm ls-remote --lts=argon nvm ls-remote 'lts/*' / nvm
   ls-remote lts/argon
 * nvm version-remote --lts / nvm version-remote --lts=argon / nvm
   version-remote 'lts/*' / nvm version-remote lts/argon

Any time your local copy of nvm connects to https://nodejs.org, it will
re-create the appropriate local aliases for all available LTS lines. These
aliases (stored under $NVM_DIR/alias/lts), are managed by nvm, and you should
not modify, remove, or create these files - expect your changes to be undone,
and expect meddling with these files to cause bugs that will likely not be
supported.

To get the latest LTS version of node and migrate your existing installed
packages, use

nvm install --reinstall-packages-from=current 'lts/*'




MIGRATING GLOBAL PACKAGES WHILE INSTALLING

If you want to install a new version of Node.js and migrate npm packages from a
previous version:

nvm install --reinstall-packages-from=node node



This will first use "nvm version node" to identify the current version you're
migrating packages from. Then it resolves the new version to install from the
remote server and installs it. Lastly, it runs "nvm reinstall-packages" to
reinstall the npm packages from your prior version of Node to the new one.

You can also install and migrate npm packages from specific versions of Node
like this:

nvm install --reinstall-packages-from=5 6
nvm install --reinstall-packages-from=iojs v4.2



Note that reinstalling packages explicitly does not update the npm version —
this is to ensure that npm isn't accidentally upgraded to a broken version for
the new node version.

To update npm at the same time add the --latest-npm flag, like this:

nvm install --reinstall-packages-from=default --latest-npm 'lts/*'



or, you can at any time run the following command to get the latest supported
npm version on the current node version:

nvm install-latest-npm



If you've already gotten an error to the effect of "npm does not support
Node.js", you'll need to (1) revert to a previous node version (nvm ls & nvm use
<your latest _working_ version from the ls>), (2) delete the newly created node
version (nvm uninstall <your _broken_ version of node from the ls>), then (3)
rerun your nvm install with the --latest-npm flag.


DEFAULT GLOBAL PACKAGES FROM FILE WHILE INSTALLING

If you have a list of default packages you want installed every time you install
a new version, we support that too -- just add the package names, one per line,
to the file $NVM_DIR/default-packages. You can add anything npm would accept as
a package argument on the command line.

# $NVM_DIR/default-packages

rimraf
object-inspect@1.0.2
stevemao/left-pad




IO.JS

If you want to install io.js:

nvm install iojs



If you want to install a new version of io.js and migrate npm packages from a
previous version:

nvm install --reinstall-packages-from=iojs iojs



The same guidelines mentioned for migrating npm packages in node are applicable
to io.js.


SYSTEM VERSION OF NODE

If you want to use the system-installed version of node, you can use the special
default alias "system":

nvm use system
nvm run system --version




LISTING VERSIONS

If you want to see what versions are installed:

nvm ls



If you want to see what versions are available to install:

nvm ls-remote




SETTING CUSTOM COLORS

You can set five colors that will be used to display version and alias
information. These colors replace the default colors. Initial colors are: g b y
r e

Color codes:

r/R = red / bold red

g/G = green / bold green

b/B = blue / bold blue

c/C = cyan / bold cyan

m/M = magenta / bold magenta

y/Y = yellow / bold yellow

k/K = black / bold black

e/W = light grey / white




nvm set-colors rgBcm



PERSISTING CUSTOM COLORS

If you want the custom colors to persist after terminating the shell, export the
NVM_COLORS variable in your shell profile. For example, if you want to use cyan,
magenta, green, bold red and bold yellow, add the following line:

export NVM_COLORS='cmgRY'



SUPPRESSING COLORIZED OUTPUT

nvm help (or -h or --help), nvm ls, nvm ls-remote and nvm alias usually produce
colorized output. You can disable colors with the --no-colors option (or by
setting the environment variable TERM=dumb):

nvm ls --no-colors
nvm help --no-colors
TERM=dumb nvm ls




RESTORING PATH

To restore your PATH, you can deactivate it:

nvm deactivate




SET DEFAULT NODE VERSION

To set a default Node version to be used in any new shell, use the alias
'default':

nvm alias default node # this refers to the latest installed version of node
nvm alias default 18 # this refers to the latest installed v18.x version of node
nvm alias default 18.12  # this refers to the latest installed v18.12.x version of node




USE A MIRROR OF NODE BINARIES

To use a mirror of the node binaries, set $NVM_NODEJS_ORG_MIRROR:

export NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist
nvm install node

NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist nvm install 4.2



To use a mirror of the io.js binaries, set $NVM_IOJS_ORG_MIRROR:

export NVM_IOJS_ORG_MIRROR=https://iojs.org/dist
nvm install iojs-v1.0.3

NVM_IOJS_ORG_MIRROR=https://iojs.org/dist nvm install iojs-v1.0.3



nvm use will not, by default, create a "current" symlink. Set
$NVM_SYMLINK_CURRENT to "true" to enable this behavior, which is sometimes
useful for IDEs. Note that using nvm in multiple shell tabs with this
environment variable enabled can cause race conditions.


.NVMRC

You can create a .nvmrc file containing a node version number (or any other
string that nvm understands; see nvm --help for details) in the project root
directory (or any parent directory). Afterwards, nvm use, nvm install, nvm exec,
nvm run, and nvm which will use the version specified in the .nvmrc file if no
version is supplied on the command line.

For example, to make nvm default to the latest 5.9 release, the latest LTS
version, or the latest node version for the current directory:

$ echo "5.9" > .nvmrc

$ echo "lts/*" > .nvmrc # to default to the latest LTS version

$ echo "node" > .nvmrc # to default to the latest version



[NB these examples assume a POSIX-compliant shell version of echo. If you use a
Windows cmd development environment, eg the .nvmrc file is used to configure a
remote Linux deployment, then keep in mind the "s will be copied leading to an
invalid file. Remove them.]

Then when you run nvm use:

$ nvm use
Found '/path/to/project/.nvmrc' with version <5.9>
Now using node v5.9.1 (npm v3.7.3)



Running nvm install will also switch over to the correct version, but if the
correct node version isn't already installed, it will install it for you.

$ nvm install
Found '/path/to/project/.nvmrc' with version <5.9>
Downloading and installing node v5.9.1...
Downloading https://nodejs.org/dist/v5.9.1/node-v5.9.1-linux-x64.tar.xz...
#################################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v5.9.1 (npm v3.7.3)



nvm use et. al. will traverse directory structure upwards from the current
directory looking for the .nvmrc file. In other words, running nvm use et. al.
in any subdirectory of a directory with an .nvmrc will result in that .nvmrc
being utilized.

The contents of a .nvmrc file must be the <version> (as described by nvm --help)
followed by a newline. No trailing spaces are allowed, and the trailing newline
is required.


DEEPER SHELL INTEGRATION

You can use avn to deeply integrate into your shell and automatically invoke nvm
when changing directories. avn is not supported by the nvm maintainers. Please
report issues to the avn team.

You can also use nvshim to shim the node, npm, and npx bins to automatically use
the nvm config in the current directory. nvshim is not supported by the nvm
maintainers. Please report issues to the nvshim team.

If you prefer a lighter-weight solution, the recipes below have been contributed
by nvm users. They are not supported by the nvm maintainers. We are, however,
accepting pull requests for more examples.

CALLING NVM USE AUTOMATICALLY IN A DIRECTORY WITH A .NVMRC FILE

In your profile (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc), add the
following to nvm use whenever you enter a new directory:

BASH

Put the following at the end of your $HOME/.bashrc:

cdnvm() {
    command cd "$@" || return $?
    nvm_path="$(nvm_find_up .nvmrc | command tr -d '\n')"

    # If there are no .nvmrc file, use the default nvm version
    if [[ ! $nvm_path = *[^[:space:]]* ]]; then

        declare default_version
        default_version="$(nvm version default)"

        # If there is no default version, set it to `node`
        # This will use the latest version on your machine
        if [ $default_version = 'N/A' ]; then
            nvm alias default node
            default_version=$(nvm version default)
        fi

        # If the current version is not the default version, set it to use the default version
        if [ "$(nvm current)" != "${default_version}" ]; then
            nvm use default
        fi
    elif [[ -s "${nvm_path}/.nvmrc" && -r "${nvm_path}/.nvmrc" ]]; then
        declare nvm_version
        nvm_version=$(<"${nvm_path}"/.nvmrc)

        declare locally_resolved_nvm_version
        # `nvm ls` will check all locally-available versions
        # If there are multiple matching versions, take the latest one
        # Remove the `->` and `*` characters and spaces
        # `locally_resolved_nvm_version` will be `N/A` if no local versions are found
        locally_resolved_nvm_version=$(nvm ls --no-colors "${nvm_version}" | command tail -1 | command tr -d '\->*' | command tr -d '[:space:]')

        # If it is not already installed, install it
        # `nvm install` will implicitly use the newly-installed version
        if [ "${locally_resolved_nvm_version}" = 'N/A' ]; then
            nvm install "${nvm_version}";
        elif [ "$(nvm current)" != "${locally_resolved_nvm_version}" ]; then
            nvm use "${nvm_version}";
        fi
    fi
}

alias cd='cdnvm'
cdnvm "$PWD" || exit



This alias would search 'up' from your current directory in order to detect a
.nvmrc file. If it finds it, it will switch to that version; if not, it will use
the default version.

ZSH

This shell function will install (if needed) and nvm use the specified Node
version when an .nvmrc is found, and nvm use default otherwise.

Put this into your $HOME/.zshrc to call nvm use automatically whenever you enter
a directory that contains an .nvmrc file with a string telling nvm which node to
use:

# place this after nvm initialization!
autoload -U add-zsh-hook

load-nvmrc() {
  local nvmrc_path
  nvmrc_path="$(nvm_find_nvmrc)"

  if [ -n "$nvmrc_path" ]; then
    local nvmrc_node_version
    nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")")

    if [ "$nvmrc_node_version" = "N/A" ]; then
      nvm install
    elif [ "$nvmrc_node_version" != "$(nvm version)" ]; then
      nvm use
    fi
  elif [ -n "$(PWD=$OLDPWD nvm_find_nvmrc)" ] && [ "$(nvm version)" != "$(nvm version default)" ]; then
    echo "Reverting to nvm default version"
    nvm use default
  fi
}

add-zsh-hook chpwd load-nvmrc
load-nvmrc



FISH

This requires that you have bass installed.

# ~/.config/fish/functions/nvm.fish
function nvm
  bass source ~/.nvm/nvm.sh --no-use ';' nvm $argv
end

# ~/.config/fish/functions/nvm_find_nvmrc.fish
function nvm_find_nvmrc
  bass source ~/.nvm/nvm.sh --no-use ';' nvm_find_nvmrc
end

# ~/.config/fish/functions/load_nvm.fish
function load_nvm --on-variable="PWD"
  set -l default_node_version (nvm version default)
  set -l node_version (nvm version)
  set -l nvmrc_path (nvm_find_nvmrc)
  if test -n "$nvmrc_path"
    set -l nvmrc_node_version (nvm version (cat $nvmrc_path))
    if test "$nvmrc_node_version" = "N/A"
      nvm install (cat $nvmrc_path)
    else if test "$nvmrc_node_version" != "$node_version"
      nvm use $nvmrc_node_version
    end
  else if test "$node_version" != "$default_node_version"
    echo "Reverting to default Node version"
    nvm use default
  end
end

# ~/.config/fish/config.fish
# You must call it on initialization or listening to directory switching won't work
load_nvm > /dev/stderr




RUNNING TESTS

Tests are written in Urchin. Install Urchin (and other dependencies) like so:

npm install




There are slow tests and fast tests. The slow tests do things like install node
and check that the right versions are used. The fast tests fake this to test
things like aliases and uninstalling. From the root of the nvm git repository,
run the fast tests like this:

npm run test/fast




Run the slow tests like this:

npm run test/slow




Run all of the tests like this:

npm test




Nota bene: Avoid running nvm while the tests are running.


ENVIRONMENT VARIABLES

nvm exposes the following environment variables:

 * NVM_DIR - nvm's installation directory.
 * NVM_BIN - where node, npm, and global packages for the active version of node
   are installed.
 * NVM_INC - node's include file directory (useful for building C/C++ addons for
   node).
 * NVM_CD_FLAGS - used to maintain compatibility with zsh.
 * NVM_RC_VERSION - version from .nvmrc file if being used.

Additionally, nvm modifies PATH, and, if present, MANPATH and NODE_PATH when
changing versions.


BASH COMPLETION

To activate, you need to source bash_completion:

[[ -r $NVM_DIR/bash_completion ]] && \. $NVM_DIR/bash_completion



Put the above sourcing line just below the sourcing line for nvm in your profile
(.bashrc, .bash_profile).


USAGE

nvm:

> $ nvm Tab

alias               deactivate          install             list-remote         reinstall-packages  uninstall           version
cache               exec                install-latest-npm  ls                  run                 unload              version-remote
current             help                list                ls-remote           unalias             use                 which



nvm alias:

> $ nvm alias Tab

default      iojs         lts/*        lts/argon    lts/boron    lts/carbon   lts/dubnium  lts/erbium   node         stable       unstable



> $ nvm alias my_alias Tab

v10.22.0       v12.18.3      v14.8.0



nvm use:

> $ nvm use Tab

my_alias        default        v10.22.0       v12.18.3      v14.8.0




nvm uninstall:

> $ nvm uninstall Tab

my_alias        default        v10.22.0       v12.18.3      v14.8.0





COMPATIBILITY ISSUES

nvm will encounter some issues if you have some non-default settings set. (see
#606) The following are known to cause issues:

Inside ~/.npmrc:

prefix='some/path'



Environment Variables:

$NPM_CONFIG_PREFIX
$PREFIX



Shell settings:

set -e




INSTALLING NVM ON ALPINE LINUX

In order to provide the best performance (and other optimizations), nvm will
download and install pre-compiled binaries for Node (and npm) when you run nvm
install X. The Node project compiles, tests and hosts/provides these
pre-compiled binaries which are built for mainstream/traditional Linux
distributions (such as Debian, Ubuntu, CentOS, RedHat et al).

Alpine Linux, unlike mainstream/traditional Linux distributions, is based on
BusyBox, a very compact (~5MB) Linux distribution. BusyBox (and thus Alpine
Linux) uses a different C/C++ stack to most mainstream/traditional Linux
distributions - musl. This makes binary programs built for such
mainstream/traditional incompatible with Alpine Linux, thus we cannot simply nvm
install X on Alpine Linux and expect the downloaded binary to run correctly -
you'll likely see "...does not exist" errors if you try that.

There is a -s flag for nvm install which requests nvm download Node source and
compile it locally.

If 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, depending on which version you are using:


ALPINE LINUX 3.13+

apk add -U curl bash ca-certificates openssl ncurses coreutils python3 make gcc g++ libgcc linux-headers grep util-linux binutils findutils
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash




ALPINE LINUX 3.5 - 3.12

apk add -U curl bash ca-certificates openssl ncurses coreutils python2 make gcc g++ libgcc linux-headers grep util-linux binutils findutils
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash



Note: Alpine 3.5 can only install NodeJS versions up to v6.9.5, Alpine 3.6 can
only install versions up to v6.10.3, Alpine 3.7 installs versions up to v8.9.3,
Alpine 3.8 installs versions up to v8.14.0, Alpine 3.9 installs versions up to
v10.19.0, Alpine 3.10 installs versions up to v10.24.1, Alpine 3.11 installs
versions up to v12.22.6, Alpine 3.12 installs versions up to v12.22.12, Alpine
3.13 & 3.14 install versions up to v14.20.0, Alpine 3.15 & 3.16 install versions
up to v16.16.0 (These are all versions on the main branch). Alpine 3.5 - 3.12
required the package python2 to build NodeJS, as they are older versions to
build. Alpine 3.13+ requires python3 to successfully build newer NodeJS
versions, but you can use python2 with Alpine 3.13+ if you need to build
versions of node supported in Alpine 3.5 - 3.15, you just need to specify what
version of NodeJS you need to install in the package install script.

The Node project has some desire but no concrete plans (due to the overheads of
building, testing and support) to offer Alpine-compatible binaries.

As a potential alternative, @mhart (a Node contributor) has some Docker images
for Alpine Linux with Node and optionally, npm, pre-installed.




UNINSTALLING / REMOVAL


MANUAL UNINSTALL

To remove nvm manually, execute the following:

First, use nvm unload to remove the nvm command from your terminal session and
delete the installation directory:

$ nvm_dir="${NVM_DIR:-~/.nvm}"
$ nvm unload
$ rm -rf "$nvm_dir"



Edit ~/.bashrc (or other shell resource config) and remove the lines below:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[[ -r $NVM_DIR/bash_completion ]] && \. $NVM_DIR/bash_completion




DOCKER FOR DEVELOPMENT ENVIRONMENT

To make the development and testing work easier, we have a Dockerfile for
development usage, which is based on Ubuntu 18.04 base image, prepared with
essential and useful tools for nvm development, to build the docker image of the
environment, run the docker command at the root of nvm repository:

$ docker build -t nvm-dev .



This will package your current nvm repository with our pre-defined development
environment into a docker image named nvm-dev, once it's built with success,
validate your image via docker images:

$ docker images

REPOSITORY         TAG                 IMAGE ID            CREATED             SIZE
nvm-dev            latest              9ca4c57a97d8        7 days ago          650 MB



If you got no error message, now you can easily involve in:

$ docker run -h nvm-dev -it nvm-dev

nvm@nvm-dev:~/.nvm$



Please note that it'll take about 8 minutes to build the image and the image
size would be about 650MB, so it's not suitable for production usage.

For more information and documentation about docker, please refer to its
official website:

 * https://www.docker.com/
 * https://docs.docker.com/


PROBLEMS

 * If you try to install a node version and the installation fails, be sure to
   run nvm cache clear to delete cached node downloads, or you might get an
   error like the following:
   
   curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume.

 * Where's my sudo node? Check out #43

 * 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:

nvm install -s 0.8.6


 * 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)


MACOS TROUBLESHOOTING

nvm node version not found in vim shell

If you set node version to a version other than your system node version nvm use
6.2.1 and open vim and run :!node -v you should see v6.2.1 if you see your
system version v0.12.7. You need to run:

sudo chmod ugo-x /usr/libexec/path_helper



More on this issue in dotphiles/dotzsh.

nvm is not compatible with the npm config "prefix" option

Some solutions for this issue can be found here

There is one more edge case causing this issue, and that's a mismatch between
the $HOME path and the user's home directory's actual name.

You have to make sure that the user directory name in $HOME and the user
directory name you'd see from running ls /Users/ are capitalized the same way
(See this issue).

To change the user directory and/or account name follow the instructions here

Homebrew makes zsh directories unsecure

zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]? y



Homebrew causes insecure directories like /usr/local/share/zsh/site-functions
and /usr/local/share/zsh. This is not an nvm problem - it is a homebrew problem.
Refer here for some solutions related to the issue.

Macs with Apple Silicon chips

Experimental support for the Apple Silicon chip architecture was added in
node.js v15.3 and full support was added in v16.0. Because of this, if you try
to install older versions of node as usual, you will probably experience either
compilation errors when installing node or out-of-memory errors while running
your code.

So, if you want to run a version prior to v16.0 on an Apple Silicon Mac, it may
be best to compile node targeting the x86_64 Intel architecture so that Rosetta
2 can translate the x86_64 processor instructions to ARM-based Apple Silicon
instructions. Here's what you will need to do:

 * Install Rosetta, if you haven't already done so
   
   $ softwareupdate --install-rosetta
   
   
   
   You might wonder, "how will my Apple Silicon Mac know to use Rosetta for a
   version of node compiled for an Intel chip?". If an executable contains only
   Intel instructions, macOS will automatically use Rosetta to translate the
   instructions.

 * Open a shell that's running using Rosetta
   
   $ arch -x86_64 zsh
   
   
   
   Note: This same thing can also be accomplished by finding the Terminal or
   iTerm App in Finder, right clicking, selecting "Get Info", and then checking
   the box labeled "Open using Rosetta".
   
   Note: This terminal session is now running in zsh. If zsh is not the shell
   you typically use, nvm may not be source'd automatically like it probably is
   for your usual shell through your dotfiles. If that's the case, make sure to
   source nvm.
   
   $ source "${NVM_DIR}/nvm.sh"
   
   

 * Install whatever older version of node you are interested in. Let's use
   12.22.1 as an example. This will fetch the node source code and compile it,
   which will take several minutes.
   
   $ nvm install v12.22.1 --shared-zlib
   
   
   
   Note: You're probably curious why --shared-zlib is included. There's a bug in
   recent versions of Apple's system clang compiler. If one of these broken
   versions is installed on your system, the above step will likely still
   succeed even if you didn't include the --shared-zlib flag. However, later,
   when you attempt to npm install something using your old version of node.js,
   you will see incorrect data check errors. If you want to avoid the possible
   hassle of dealing with this, include that flag. For more details, see this
   issue and this comment

 * Exit back to your native shell.
   
   $ exit
   $ arch
   arm64
   
   
   
   Note: If you selected the box labeled "Open using Rosetta" rather than
   running the CLI command in the second step, you will see i386 here. Unless
   you have another reason to have that box selected, you can deselect it now.

 * Check to make sure the architecture is correct. x64 is the abbreviation for
   x86_64, which is what you want to see.
   
   $ node -p process.arch
   x64
   
   

Now you should be able to use node as usual.


WSL TROUBLESHOOTING

If you've encountered this error on WSL-2:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload  Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:--  0:00:09 --:--:--     0curl: (6) Could not resolve host: raw.githubusercontent.com



It may be due to your antivirus, VPN, or other reasons.

Where you can ping 8.8.8.8 while you can't ping google.com

This could simply be solved by running this in your root directory:

sudo rm /etc/resolv.conf
sudo bash -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf'
sudo bash -c 'echo "[network]" > /etc/wsl.conf'
sudo bash -c 'echo "generateResolvConf = false" >> /etc/wsl.conf'
sudo chattr +i /etc/resolv.conf



This deletes your resolv.conf file that is automatically generated when you run
WSL, creates a new file and puts nameserver 8.8.8.8, then creates a wsl.conf
file and adds [network] and generateResolveConf = false to prevent
auto-generation of that file.

You can check the contents of the file by running:

cat /etc/resolv.conf




MAINTAINERS

Currently, the sole maintainer is @ljharb - more maintainers are quite welcome,
and we hope to add folks to the team over time. Governance will be re-evaluated
as the project evolves.


LICENSE

See LICENSE.md.


COPYRIGHT NOTICE

Copyright OpenJS Foundation and nvm contributors. All rights reserved. The
OpenJS Foundation has registered trademarks and uses trademarks. For a list of
trademarks of the OpenJS Foundation, please see our Trademark Policy and
Trademark List. Node.js is a trademark of Joyent, Inc. and is used with its
permission. Trademarks and logos not indicated on the list of OpenJS Foundation
trademarks are trademarks™ or registered® trademarks of their respective
holders. Use of them does not imply any affiliation with or endorsement by them.

The OpenJS Foundation | Terms of Use | Privacy Policy | OpenJS Foundation Bylaws
| Trademark Policy | Trademark List | Cookie Policy





FOOTER

© 2024 GitHub, Inc.


FOOTER NAVIGATION

 * Terms
 * Privacy
 * Security
 * Status
 * Docs
 * Contact
 * Manage cookies
 * Do not share my personal information

You can’t perform that action at this time.