Closed anthonygreen closed 7 years ago
I have also come across this as being a problem on RedHat, and I'm using version 2.1.0.0. For me though, I haven't experienced this problem on Darwin.
I have also had this problem on OSX
@anthonygreen I also have this problem on OSX El Capitan using the most recent version of Ansbile installed via homebrew. The npm module gives this error related to JSON parsing. Initially found the issue you mentioned.
fatal: [host]: FAILED! => {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "\r\nTraceback (most recent call last):\r\n File \"/tmp/ansible_XNQzXM/ansible_module_npm.py\", line 269, in <module>\r\n main()\r\n File \"/tmp/ansible_XNQzXM/ansible_module_npm.py\", line 249, in main\r\n installed, missing = npm.list()\r\n File \"/tmp/ansible_XNQzXM/ansible_module_npm.py\", line 173, in list\r\n data = json.loads(self._exec(cmd, True, False))\r\n File \"/usr/lib/python2.7/json/__init__.py\", line 338, in loads\r\n return _default_decoder.decode(s)\r\n File \"/usr/lib/python2.7/json/decoder.py\", line 366, in decode\r\n obj, end = self.raw_decode(s, idx=_w(s, 0).end())\r\n File \"/usr/lib/python2.7/json/decoder.py\", line 384, in raw_decode\r\n raise ValueError(\"No JSON object could be decoded\")\r\nValueError: No JSON object could be decoded\r\n", "msg": "MODULE FAILURE", "parsed": false}
What version of npm are you all using? You're likely running into npm/npm#8807. If you can upgrade to a more recent version of npm, it may resolve it for you. If you're stuck on early v3 or v2, you might be stuck using the shell module to "manually" install modules.
@shane-walker, ping. This issue is still waiting on your response. click here for bot help
@shane-walker, ping. This issue is still waiting on your response. click here for bot help
@shane-walker, ping. This issue is still waiting on your response. click here for bot help
@shane-walker, ping. This issue is still waiting on your response. click here for bot help
@shane-walker, ping. This issue is still waiting on your response. click here for bot help
This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible
Please read through the repomerge page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo.
This issue was migrated to https://github.com/ansible/ansible/issues/29248
Issue Type:
Bug Report
Component Name:
npm module
Ansible Version:
Ansible 2.0.0 (stable-2.0)
Environment:
OS X 10.9.5 Python 2.7.11
Summary:
Ansible npm_module doesn't work on OS X
Steps To Reproduce:
This task fails
Expected Results:
ssh into the machine and running
does work
Actual Results:
Is this connected to https://github.com/ansible/ansible/issues/12982 ?