nvm: Doesn't work on fresh install

I get the following error as soon as I source my ~/.zshrc

/home/taxborn/.nvm/nvm.sh:2038: parse error near `)'

I believe I have done everything right, and in the screen shot you can see that I have just installed it. Here is the line(s) in question.

  if ! (
    # shellcheck disable=SC2086
    command mkdir -p "${TMPDIR}" && \
    command "${tar}" -x${tar_compression_flag}f "${TARBALL}" -C "${TMPDIR}" --strip-components 1 && \
    VERSION_PATH="$(nvm_version_path "${PREFIXED_VERSION}")" && \
    nvm_cd "${TMPDIR}" && \
    nvm_echo '$>'./configure --prefix="${VERSION_PATH}" $ADDITIONAL_PARAMETERS'<' && \
    ./configure --prefix="${VERSION_PATH}" $ADDITIONAL_PARAMETERS && \
    $make -j "${NVM_MAKE_JOBS}" ${MAKE_CXX-} && \
    command rm -f "${VERSION_PATH}" 2>/dev/null && \
    $make -j "${NVM_MAKE_JOBS}" ${MAKE_CXX-} install
  ); then # <--- This is line 2038
    nvm_err "nvm: install ${VERSION} failed!"
    command rm -rf "${TMPDIR-}"
    return 1
  fi

screenshot from 2018-06-29 17-13-18

Thank you!

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

Sweet, it works in v0.26.1 but not in v0.27.0. So somewhere in there something broke, at least for my setopt settings…

Alright, after trying to binary-search my way through the setopt and unsetopt process, nothing came out of it. Still the same parse error 😦