NVM activation commands exiting after execution

I’ve seen plenty of NVM/Node complaint discussions, and I’ve attempted implementing fixes from all of them, but regardless of what I try, the build agent is always exiting with Code 3 (SIGQUIT, Quit From Keyboard).

version: 2.1
jobs:
    build-and-test:
      macos:
        xcode: "10.0"
      working_directory: ~/project

      steps:
      - checkout
      - run:
          name: Download Node
          command: |
            curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
      - run:
          name: Activate NVM
          command: |
            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
      - run:
          name: Install NPM Modules
          command:
            npm ci
      - run:
          name: Unit Tests
          command:
            'npm run coverage'

workflows:
  version: 2.1
  build-and-test:
    jobs:
      - build-and-test

The cUrl to get NVM is successful, but every time the build runs, regardless of where I source or use nvm install v10.9.0 the build fails at the export step.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.