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

**URL:** <https://forum.ansible.com/t/usage-of-npm-install-on-centos-6-3-getting-error/16567>\
**Category:** Ansible Project\
**Created:** [October 21, 2014, 6:20am UTC](https://forum.ansible.com/t/usage-of-npm-install-on-centos-6-3-getting-error/16567 "2014-10-21T06:20:47Z")\
**Posts on this page:** 4\
**Page:** 1

<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 21, 2014, 6:20am UTC](https://forum.ansible.com/t/usage-of-npm-install-on-centos-6-3-getting-error/16567/1 "2014-10-21T06:20:47Z")

</div>

Hi everyone

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

---

<div class="post-metadata">

**Author:** ![James\_Cammarata](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Post date:** [October 23, 2014, 4:46pm UTC](https://forum.ansible.com/t/usage-of-npm-install-on-centos-6-3-getting-error/16567/2 "2014-10-23T16:46:30Z")

</div>

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!

---

<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:28pm UTC](https://forum.ansible.com/t/usage-of-npm-install-on-centos-6-3-getting-error/16567/3 "2014-10-24T13:28:04Z")

</div>

“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.

---

<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:30am UTC](https://forum.ansible.com/t/usage-of-npm-install-on-centos-6-3-getting-error/16567/4 "2014-10-29T09:30:00Z")

</div>

Hi MIchael

I have installed ansible using git only.  
Steps are as below:

```auto
$ git clone git://github.com/ansible/ansible.git --recursive
$ cd ./ansible
$ source ./hacking/env-setup

```

```auto
I also updated the submodules using

```

```auto
git submodule update --init --recursive

```

```auto
Still getting the same error.Any help would be highly appreciated.

```
