# How do I install this plugin?

**URL:** <https://phaser.discourse.group/t/how-do-i-install-this-plugin/3385>\
**Category:** Phaser 3\
**Created:** [August 7, 2019, 6:05pm UTC](https://phaser.discourse.group/t/how-do-i-install-this-plugin/3385 "2019-08-07T18:05:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Legomite](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/legomite/32/92_2.png) [@Legomite](https://phaser.discourse.group/u/Legomite)\
**Post date:** [August 7, 2019, 6:05pm UTC](https://phaser.discourse.group/t/how-do-i-install-this-plugin/3385/1 "2019-08-07T18:05:16Z")

</div>

I’m having a lot of trouble attempting to use this plugin: [https://github.com/koreezgames/phaser3-ninepatch-plugin](https://github.com/koreezgames/phaser3-ninepatch-plugin)

I used npm install @koreez/phaser3-ninepatch --save and it gave me some Javascript equivalents to the typescript files that the plugin was written with. For some reason, these files won’t run straight out of the box. I think it’s because it converted all the ES6 imports into some other type of import/export thing. I really lack experience in this field. Help???

---

<div class="post-metadata">

**Author:** ![stupot](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@stupot](https://phaser.discourse.group/u/stupot)\
**Post date:** [August 7, 2019, 8:20pm UTC](https://phaser.discourse.group/t/how-do-i-install-this-plugin/3385/2 "2019-08-07T20:20:18Z")

</div>

Hi, sounds like you want the normal .js library, you’ll have to build it, as follows:

- open a command prompt
- move to the plugin directory (probably under node\_modules if you have installed it as you described)
- type ‘npm install’
- type ‘npm run build’
- the generated file is in dist/ninepatch.min.js

You may get problems, eg it needs webpack installed. It’s the very common npm library install/build procedure, easy if you’ve done it a few times, a nightmare if it’s your first.

---

<div class="post-metadata">

**Author:** ![Legomite](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/legomite/32/92_2.png) [@Legomite](https://phaser.discourse.group/u/Legomite)\
**Post date:** [August 8, 2019, 1:34am UTC](https://phaser.discourse.group/t/how-do-i-install-this-plugin/3385/3 "2019-08-08T01:34:41Z")

</div>

Thank you! Although I wasn’t able to get it to work from the directory I installed earlier, I downloaded the repo through Github, and ran the same commands from there instead and it worked!

---

<div class="post-metadata">

**Author:** ![ansonben](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/ansonben/32/1876_2.png) [@ansonben](https://phaser.discourse.group/u/ansonben)\
**Post date:** [August 8, 2019, 4:27am UTC](https://phaser.discourse.group/t/how-do-i-install-this-plugin/3385/4 "2019-08-08T04:27:53Z")

</div>

Open CMD  
Type ‘npm install…’
