# Why is the node\_modules folder not present in discourse project folder?

**URL:** https://meta.discourse.org/t/why-is-the-node-modules-folder-not-present-in-discourse-project-folder/66252
**Category:** Development
**Created:** [July 15, 2017, 7:26am UTC](https://meta.discourse.org/t/why-is-the-node-modules-folder-not-present-in-discourse-project-folder/66252 "2017-07-15T07:26:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![He-Man](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/he-man/32/75301_2.png) [@He-Man](https://meta.discourse.org/u/He-Man)
#### Post date: [July 15, 2017, 7:26am UTC](https://meta.discourse.org/t/why-is-the-node-modules-folder-not-present-in-discourse-project-folder/66252/1 "2017-07-15T07:26:28Z")

</div>

I was going through discourse code, and comparing it with standard emberjs projects.

Discourse uses version 2.13 of emberjs.

The[emberjs directory structure](https://guides.emberjs.com/v2.13.0/tutorial/ember-cli/#toc_directory-structure) includes `node_modules` folder.

But the [front end part of discourse project](https://github.com/discourse/discourse/tree/master/app/assets/javascripts) does not have any node\_modules folder. So discourse does not use any module from npm?

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [July 15, 2017, 7:42am UTC](https://meta.discourse.org/t/why-is-the-node-modules-folder-not-present-in-discourse-project-folder/66252/2 "2017-07-15T07:42:35Z")

</div>

As per my understanding, instead of using npm JS dependencies are directly placed in [vendor](https://github.com/discourse/discourse/tree/master/vendor/assets/javascripts) directory.

---

<div class="post-metadata">

### Author: ![He-Man](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/he-man/32/75301_2.png) [@He-Man](https://meta.discourse.org/u/He-Man)
#### Post date: [July 15, 2017, 7:45am UTC](https://meta.discourse.org/t/why-is-the-node-modules-folder-not-present-in-discourse-project-folder/66252/3 "2017-07-15T07:45:00Z")

</div>

oh ok. Thanks for answer. Do you know what is the reasoning behind the decision of using vendor folder and not node\_modules?

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [July 15, 2017, 10:58pm UTC](https://meta.discourse.org/t/why-is-the-node-modules-folder-not-present-in-discourse-project-folder/66252/4 "2017-07-15T22:58:43Z")

</div>

Probably because that’s where all the _other_ vendored code already lived, so it seemed wasteful to create yet another top-level directory.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [July 16, 2017, 12:57am UTC](https://meta.discourse.org/t/why-is-the-node-modules-folder-not-present-in-discourse-project-folder/66252/5 "2017-07-16T00:57:53Z")

</div>

@eviltrout and I have a long term plan to shift js dependency management to yarn or npm but for the time being dependencies are handled manually
