morgangraphics / ansible-role-nvm

Installs NVM & Node.js on Debian/Ubuntu and RHEL/CentOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Check version fails on OSX

Jamesking56 opened this issue · comments

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

  • OS: [e.g. Ubuntu 18.04, CentOS, OSX]: OSX
  • Ansible Version: 2.9.6
  • Hypervisor Type and Version [e.g. Virtualbox 6, VMWARE ESX, Docker 19.03, etc]: N/A?

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