Usage of 'npm install' on centos 6.3 , getting error

116 views
Skip to first unread message

Nikita Agrawal

unread,
Oct 21, 2014, 2:20:47 AM10/21/14
to ansible...@googlegroups.com
Hi everyone

I am trying to install forever using npm and ansible on Centos 6.3. Here is my playbook.

---
- name: Install forever
  npm: name=forever global=yes state=latest

I am getting error:
npm is not a legal parameter at this level in an ansible playbook.

Now if I add these same lines in main,yml in tasks folder for node.js, I am getting below error:
npm is not a legal paramter in an Ansible task or handler. 

James Cammarata

unread,
Oct 23, 2014, 12:46:40 PM10/23/14
to ansible...@googlegroups.com
Hi Nikita,

If you're running from the source installation of Ansible, make sure that you've run "git submodule update --init", as we have moved the modules into their own repositories.

If you've installed Ansible in some other way, please let us know.

Thanks!

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/379593dc-fbf4-4af1-b3c3-50dbe1b8ad73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael DeHaan

unread,
Oct 24, 2014, 9:28:09 AM10/24/14
to ansible...@googlegroups.com
"If you're running from the source installation of Ansible, make sure that you've run "git submodule update --init", as we have moved the modules into their own repositories."

Ansible will report if it detects it can't find modules, so if this does fix this for you, and you did not get an appropriate message telling you to do this from the program, let me know.

I think I replied to another similar question about this already, but let me know how you have installed ansible if not, as this may be something else.

Nikita Agrawal

unread,
Oct 29, 2014, 5:30:00 AM10/29/14
to ansible...@googlegroups.com
Hi MIchael

I have installed ansible using git only.
Steps are as below:
$ git clone git://github.com/ansible/ansible.git --recursive
$ cd ./ansible
$ source ./hacking/env-setup
I also updated the submodules using
git submodule update --init --recursive
Still getting the same error.Any help would be highly appreciated.
Reply all
Reply to author
Forward
0 new messages