# \[Tool\] Package Bundler — potentially shrink your app size drastically with this tool

**URL:** <https://community.homey.app/t/tool-package-bundler-potentially-shrink-your-app-size-drastically-with-this-tool/72460>\
**Category:** Developers\
**Tags:** tools, homey-pro, homey-bridge\
**Created:** [November 21, 2022, 2:40pm UTC](https://community.homey.app/t/tool-package-bundler-potentially-shrink-your-app-size-drastically-with-this-tool/72460 "2022-11-21T14:40:58Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [January 13, 2023, 6:54pm UTC](https://community.homey.app/t/tool-package-bundler-potentially-shrink-your-app-size-drastically-with-this-tool/72460/21 "2023-01-13T18:54:05Z")

</div>

Hi Robert,

I want to install your package but get errors. Any hint what’s wrong?

npm install -g [GitHub - robertklep/package-bundler: Bundle a Node.js package into a single file.](https://github.com/robertklep/package-bundler)  
npm ERR! code ENOENT  
npm ERR! syscall spawn git  
npm ERR! path git  
npm ERR! errno ENOENT  
npm ERR! enoent Error while executing:  
npm ERR! enoent undefined ls-remote -h -t [GitHub - robertklep/package-bundler: Bundle a Node.js package into a single file.](https://github.com/robertklep/package-bundler.git)  
npm ERR! enoent  
npm ERR! enoent  
npm ERR! enoent spawn git ENOENT  
npm ERR! enoent This is related to npm not being able to find a file.  
npm ERR! enoent

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [January 13, 2023, 7:23pm UTC](https://community.homey.app/t/tool-package-bundler-potentially-shrink-your-app-size-drastically-with-this-tool/72460/22 "2023-01-13T19:23:10Z")

</div>

Looks like you don’t have Git (as a CLI tool) installed.

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [January 13, 2023, 7:25pm UTC](https://community.homey.app/t/tool-package-bundler-potentially-shrink-your-app-size-drastically-with-this-tool/72460/23 "2023-01-13T19:25:08Z")

</div>

This one?

> **[GitHub CLI](https://cli.github.com/)**
>
> Take GitHub to the command line

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [January 13, 2023, 7:27pm UTC](https://community.homey.app/t/tool-package-bundler-potentially-shrink-your-app-size-drastically-with-this-tool/72460/24 "2023-01-13T19:27:09Z")

</div>

No, those are Github-specific tools, the Git CLI tools can be found here: [Git - Downloads](https://git-scm.com/downloads)

But I’ve updated the installation instructions on how to install without Git: [GitHub - robertklep/package-bundler: Bundle a Node.js package into a single file.](https://github.com/robertklep/package-bundler#installation)

---

<div class="post-metadata">

**Author:** ![Baldhor](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/baldhor/32/27028_2.png) [@Baldhor](https://community.homey.app/u/Baldhor)\
**Post date:** [September 12, 2023, 9:03am UTC](https://community.homey.app/t/tool-package-bundler-potentially-shrink-your-app-size-drastically-with-this-tool/72460/25 "2023-09-12T09:03:37Z")

</div>

Hello Robert, just found this pearl 🙂

Is it how you bundled petite-vue.js for homekitty?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [September 12, 2023, 9:08am UTC](https://community.homey.app/t/tool-package-bundler-potentially-shrink-your-app-size-drastically-with-this-tool/72460/26 "2023-09-12T09:08:06Z")

</div>

> [@Baldhor](#):
>
> Is it how you bundled petite-vue.js for homekitty?

No, `package-bundler` is only used for Node.js packages, `petite-vue.js` is just provided [as-is](https://github.com/robertklep/name.klep.homekitty/blob/main/settings/petite-vue.js) (although it’s been minified, but that’s how it is provided by [unpkg](https://unpkg.com/petite-vue)).

I _did_ use it for the `homey-api` and `hap-nodejs` packages: [https://github.com/robertklep/name.klep.homekitty/tree/main/modules](https://github.com/robertklep/name.klep.homekitty/tree/main/modules)

---

<div class="post-metadata">

**Author:** ![Baldhor](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/baldhor/32/27028_2.png) [@Baldhor](https://community.homey.app/u/Baldhor)\
**Post date:** [September 12, 2023, 9:23am UTC](https://community.homey.app/t/tool-package-bundler-potentially-shrink-your-app-size-drastically-with-this-tool/72460/27 "2023-09-12T09:23:17Z")

</div>

ok I was wondering how you got the petite-vue.js package, and which version it is 🙂  
I think I can use this tool on one or two dependancies to reduce my app size.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [September 12, 2023, 9:27am UTC](https://community.homey.app/t/tool-package-bundler-potentially-shrink-your-app-size-drastically-with-this-tool/72460/28 "2023-09-12T09:27:52Z")

</div>

I’m using version 0.4.1 (which is the current one).

[Previous page](https://community.homey.app/t/tool-package-bundler-potentially-shrink-your-app-size-drastically-with-this-tool/72460.md?page=1)
