# Ionic 2 unmanageble directory structure

**URL:** <https://forum.ionicframework.com/t/ionic-2-unmanageble-directory-structure/50551>\
**Category:** ionic-v3\
**Created:** [April 27, 2016, 1:18pm UTC](https://forum.ionicframework.com/t/ionic-2-unmanageble-directory-structure/50551 "2016-04-27T13:18:27Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![Mobius77](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@Mobius77](https://forum.ionicframework.com/u/Mobius77)\
**Post date:** [May 4, 2016, 1:48am UTC](https://forum.ionicframework.com/t/ionic-2-unmanageble-directory-structure/50551/22 "2016-05-04T01:48:24Z")

</div>

I was having these problems with Windows and long file names etc however installing the latest npm fixed the issue because version 3 onwards I believe (and as Mike Hartington has also commented) creates a flat dependency tree structure for node modules.

Regardless if you have a recent version of Node, do this:

```auto
npm install -g npm

```

Note that npm is updated more frequently than Node, so the latest Node version may not necessarily have the latest npm version.

The latest npm version at the time of writing is 3.8.8.

---

_[View the full topic](https://forum.ionicframework.com/t/ionic-2-unmanageble-directory-structure/50551)._
