# Install Ionic Fork locally

**URL:** <https://forum.ionicframework.com/t/install-ionic-fork-locally/183338>\
**Category:** Ionic Framework\
**Created:** [February 14, 2020, 4:36pm UTC](https://forum.ionicframework.com/t/install-ionic-fork-locally/183338 "2020-02-14T16:36:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![EinfachHans](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/einfachhans/32/130917_2.png) [@EinfachHans](https://forum.ionicframework.com/u/EinfachHans)\
**Post date:** [February 14, 2020, 4:36pm UTC](https://forum.ionicframework.com/t/install-ionic-fork-locally/183338/1 "2020-02-14T16:36:17Z")

</div>

Hey there,

how can i install a cloned ionic Fork locally? I want to make some Pull Requests and test my changes first.

I struggled around with:

```auto
@ionic/angular: "file:../ionic/angular",
@ionic/core: "file.../ionic/core"

```

but this seems not to work.

Has anyone done this before? Any Contributer? 😊

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [February 14, 2020, 8:49pm UTC](https://forum.ionicframework.com/t/install-ionic-fork-locally/183338/2 "2020-02-14T20:49:19Z")

</div>

I have indeed done this before, but it was a long time ago against a code base far, far away, so the best I can do now is to give some things to try.

Your first ally in this battle is going to be [`npm link`](https://docs.npmjs.com/cli-commands/link.html). If you can get that to work correctly, it will be by far the simplest to deal with incrementally, as your changes in the fork will be reflected immediately.

However, sometimes projects just aren’t linkable. If you hit a dead end there, the next thing I would try is to put your fork on GitHub (where it probably is anyway) and refer to it in your test project `package.json` using the syntax described [here](https://npm.github.io/using-pkgs-docs/package-json/types-of-dependencies.html).

The last resort I’ve ever used is to follow the build instructions and take whereever that stuff is that gets published to npm (I forget which directory that is for Ionic, and it’s probably changed anyway since I did this) and literally dump a copy of it (I use `rsync`, you can do it with `cpio` or `tar` or probably even `cp`) into the `node_modules` of that test project. This method is far from optimal, as it requires manual intervention every time you change anything.

Let us know if any of this worked for you and good luck.

---

<div class="post-metadata">

**Author:** ![EinfachHans](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/einfachhans/32/130917_2.png) [@EinfachHans](https://forum.ionicframework.com/u/EinfachHans)\
**Post date:** [February 15, 2020, 1:09pm UTC](https://forum.ionicframework.com/t/install-ionic-fork-locally/183338/3 "2020-02-15T13:09:53Z")

</div>

Thanks for your Answer! I didn’t make it work yet… Not even with the last one. The @ionic/angular Package has a dependency to @ionic/core. Even when i change this dependency to use the local, build the ionic angular and install the result from dist folder, it doesn’t work.

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [February 15, 2020, 7:45pm UTC](https://forum.ionicframework.com/t/install-ionic-fork-locally/183338/4 "2020-02-15T19:45:43Z")

</div>

Is the part you’re trying to hack on in core, angular, or both?

---

<div class="post-metadata">

**Author:** ![EinfachHans](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/einfachhans/32/130917_2.png) [@EinfachHans](https://forum.ionicframework.com/u/EinfachHans)\
**Post date:** [February 15, 2020, 8:56pm UTC](https://forum.ionicframework.com/t/install-ionic-fork-locally/183338/5 "2020-02-15T20:56:31Z")

</div>

Core 🤔 But i think also angular in future

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [February 15, 2020, 11:35pm UTC](https://forum.ionicframework.com/t/install-ionic-fork-locally/183338/6 "2020-02-15T23:35:00Z")

</div>

In the case of core, there are some suggestions in [here](https://github.com/ionic-team/ionic/blob/45d03baf981d0e10eb1fe689908532adef2ba31d/.github/CONTRIBUTING.md#core). Haven’t found anything similar for angular, though.

---

<div class="post-metadata">

**Author:** ![EinfachHans](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/einfachhans/32/130917_2.png) [@EinfachHans](https://forum.ionicframework.com/u/EinfachHans)\
**Post date:** [February 16, 2020, 2:15pm UTC](https://forum.ionicframework.com/t/install-ionic-fork-locally/183338/7 "2020-02-16T14:15:51Z")

</div>

Yeah i read that before my first PR. It describes how to run the tests etc, but i think not how to use a local fork for a test project 😕
