# npm is not a legal parameter at this level in an Ansible playbook

**URL:** <https://forum.ansible.com/t/npm-is-not-a-legal-parameter-at-this-level-in-an-ansible-playbook/16566>\
**Category:** Ansible Project\
**Created:** [October 21, 2014, 4:43am UTC](https://forum.ansible.com/t/npm-is-not-a-legal-parameter-at-this-level-in-an-ansible-playbook/16566 "2014-10-21T04:43:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ansi11](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@ansi11](https://forum.ansible.com/u/ansi11)\
**Post date:** [October 21, 2014, 4:43am UTC](https://forum.ansible.com/t/npm-is-not-a-legal-parameter-at-this-level-in-an-ansible-playbook/16566/1 "2014-10-21T04:43:27Z")

</div>

I am trying to install forever through npm on Centos 6.3 version. Getting the error as above if my .yml file is first level of playbook.

---

<div class="post-metadata">

**Author:** ![Michael\_Peters](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Post date:** [October 22, 2014, 8:20pm UTC](https://forum.ansible.com/t/npm-is-not-a-legal-parameter-at-this-level-in-an-ansible-playbook/16566/2 "2014-10-22T20:20:41Z")

</div>

Sounds like you're running ansible from a git checkout. If that is the  
case, you need to make sure your git submodules have been fetched as  
well since the big ansible git submodule split:

See [https://groups.google.com/forum/#!msg/ansible-project/TUL\_Bfmhr-E/rshKe30KdD8J](https://groups.google.com/forum/#!msg/ansible-project/TUL_Bfmhr-E/rshKe30KdD8J)

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [October 24, 2014, 1:15pm UTC](https://forum.ansible.com/t/npm-is-not-a-legal-parameter-at-this-level-in-an-ansible-playbook/16566/3 "2014-10-24T13:15:34Z")

</div>

Hi Michael,

That should not be a problem because Ansible will self-report and give a helpful error when it can’t find modules this way.

ansi,

How did you install Ansible?

---

<div class="post-metadata">

**Author:** ![Nikita\_Agrawal](https://avatars.discourse-cdn.com/v4/letter/n/ecccb3/32.png) [@Nikita\_Agrawal](https://forum.ansible.com/u/Nikita_Agrawal)\
**Post date:** [October 29, 2014, 6:03am UTC](https://forum.ansible.com/t/npm-is-not-a-legal-parameter-at-this-level-in-an-ansible-playbook/16566/4 "2014-10-29T06:03:41Z")

</div>

Hi Michael,

I installed ansible through git checkout only. I am just checking if the problem is with git submodules. Will update shortly.  
Thanks for the reply 🙂

---

<div class="post-metadata">

**Author:** ![Nikita\_Agrawal](https://avatars.discourse-cdn.com/v4/letter/n/ecccb3/32.png) [@Nikita\_Agrawal](https://forum.ansible.com/u/Nikita_Agrawal)\
**Post date:** [October 29, 2014, 6:15am UTC](https://forum.ansible.com/t/npm-is-not-a-legal-parameter-at-this-level-in-an-ansible-playbook/16566/5 "2014-10-29T06:15:15Z")

</div>

> Hi Michael,
> 
> Thanks for the reply.I installed ansible through git checkout only. I used these commands as described on [http://docs.ansible.com/intro\_installation.html](http://docs.ansible.com/intro_installation.html)

```auto
$ git clone git://github.com/ansible/ansible.git --recursive
$ cd ./ansible 

```

```auto
$ source ./hacking/env-setup 

```

---

<div class="post-metadata">

**Author:** ![Nikita\_Agrawal](https://avatars.discourse-cdn.com/v4/letter/n/ecccb3/32.png) [@Nikita\_Agrawal](https://forum.ansible.com/u/Nikita_Agrawal)\
**Post date:** [October 29, 2014, 9:20am UTC](https://forum.ansible.com/t/npm-is-not-a-legal-parameter-at-this-level-in-an-ansible-playbook/16566/6 "2014-10-29T09:20:21Z")

</div>

I tried running following on existing git checkout .  
git submodule update --init --recursive

same issue still exist

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [October 30, 2014, 8:32pm UTC](https://forum.ansible.com/t/npm-is-not-a-legal-parameter-at-this-level-in-an-ansible-playbook/16566/7 "2014-10-30T20:32:01Z")

</div>

Hmm, odd.

I don’t know why that would be the case.

---

<div class="post-metadata">

**Author:** ![Nikita\_Agrawal](https://avatars.discourse-cdn.com/v4/letter/n/ecccb3/32.png) [@Nikita\_Agrawal](https://forum.ansible.com/u/Nikita_Agrawal)\
**Post date:** [October 31, 2014, 8:37am UTC](https://forum.ansible.com/t/npm-is-not-a-legal-parameter-at-this-level-in-an-ansible-playbook/16566/8 "2014-10-31T08:37:48Z")

</div>

Any second thoughts on this are welcome…
