morgangraphics / ansible-role-nvm

Installs NVM & Node.js on Debian/Ubuntu and RHEL/CentOS
MIT License
99 stars 29 forks source link

Check version fails on OSX #18

Closed Jamesking56 closed 4 years ago

Jamesking56 commented 4 years ago

Describe the bug On OSX, an error occurs trying to check the nvm version.

Expected behavior nvm version check passes normally

To Reproduce

- role: nvm
  nvm_profile: '.zshrc'

Shell [e.g. Bash, Dash, ksh, tcsh, zsh]

ZSH

Desktop (please complete the following information):

Debugging output

TASK [nvm : Check NVM Version] ***********************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "bash -ic \"nvm --version\"", "delta": "0:00:00.012799", "end": "2020-03-28 17:30:18.724566", "msg": "non-zero return code", "rc": 127, "start": "2020-03-28 17:30:18.711767", "stderr": "bash: no job control in this shell\nbash: nvm: command not found", "stderr_lines": ["bash: no job control in this shell", "bash: nvm: command not found"], "stdout": "", "stdout_lines": []}

Additional context N/A