# \[HOW TO\] CLI install method

**URL:** <https://community.homey.app/t/how-to-cli-install-method/198>\
**Category:** Tutorials\
**Tags:** homey-pro\
**Created:** [August 23, 2018, 1:18pm UTC](https://community.homey.app/t/how-to-cli-install-method/198 "2018-08-23T13:18:12Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [August 19, 2020, 9:04am UTC](https://community.homey.app/t/how-to-cli-install-method/198/68 "2020-08-19T09:04:37Z")

</div>

Okay, now it worked. Thank you so much for that, you’re brilliant. 👍🏽

---

<div class="post-metadata">

**Author:** ![nattelip](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nattelip/32/10013_2.png) [@nattelip](https://community.homey.app/u/nattelip)\
**Post date:** [August 20, 2020, 7:43am UTC](https://community.homey.app/t/how-to-cli-install-method/198/69 "2020-08-20T07:43:41Z")

</div>

is it possble to cli a homey via the www , i have on e homey on version 5 on an other network , the other homys are production homeys , do i have to nat a port or something ?

---

<div class="post-metadata">

**Author:** ![Ryvaenge](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ryvaenge/32/13197_2.png) [@Ryvaenge](https://community.homey.app/u/Ryvaenge)\
**Post date:** [December 6, 2020, 4:09pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/70 "2020-12-06T16:09:12Z")

</div>

Is it possible to download an app from your homey with CLI? I wan`t to look at some code to verify manufacturerID support.

---

<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:** [December 6, 2020, 4:10pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/71 "2020-12-06T16:10:32Z")

</div>

No, that’s not possible ☹

---

<div class="post-metadata">

**Author:** ![Fuglebakk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fuglebakk/32/32244_2.png) [@Fuglebakk](https://community.homey.app/u/Fuglebakk)\
**Post date:** [December 8, 2020, 1:57pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/72 "2020-12-08T13:57:18Z")

</div>

When I run the command “home app run” I get the following error message (at the end):

✓ Pre-processing app…  
✓ Running plugins…  
✓ Running plugin `compose`…  
✓ Plugin `compose` finished  
✓ Validating app…  
✓ Homey App validated successfully against level `debug`  
✓ Packing Homey App…  
✓ Pruning dev dependencies…  
— App size: 134.5 KB  
✓ Installing Homey App on `Øyvind's Homey` ([https://10-22-1-124.homey.homeylocal.com](https://10-22-1-124.homey.homeylocal.com))…  
**× An unkown error has occured [incompatible\_app\_version]**

I’ve followed the Getting Started Guide on [https://apps-sdk-v2.developer.athom.com/tutorial-Getting%20Started.html](https://apps-sdk-v2.developer.athom.com/tutorial-Getting%20Started.html) to the letter. I’ve also ensured that the node.js version I am using is supported (v15.3.0)

Any ideas what’s causing the error?  
I apologize if this has been asked/answered elsewhere, I couldn’t find anything relevant on the forum.

---

<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:** [December 8, 2020, 2:04pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/73 "2020-12-08T14:04:25Z")

</div>

The app you’re trying to install (probably) requires firmware v5 (experimental at the moment), and your Homey is still running v4.

---

<div class="post-metadata">

**Author:** ![Fuglebakk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fuglebakk/32/32244_2.png) [@Fuglebakk](https://community.homey.app/u/Fuglebakk)\
**Post date:** [December 8, 2020, 2:23pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/74 "2020-12-08T14:23:02Z")

</div>

Upgrading firmware worked, thank you!

---

<div class="post-metadata">

**Author:** ![2Be](https://avatars.discourse-cdn.com/v4/letter/2/2bfe46/32.png) [@2Be](https://community.homey.app/u/2Be)\
**Post date:** [December 27, 2020, 2:43pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/75 "2020-12-27T14:43:34Z")

</div>

Hmm Used CLI before. Just installed Node.js v12.16.1.  
Now I get this error:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/b/9bc68483fbbbbb5917b4f591016f9714c1ef4c2e.png)

Don’t know what I am doing wrong?

---

<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:** [December 27, 2020, 2:47pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/76 "2020-12-27T14:47:02Z")

</div>

Execute this: `xcode-select --install`

This will install the (required) Xcode toolkit on your Mac.

---

<div class="post-metadata">

**Author:** ![2Be](https://avatars.discourse-cdn.com/v4/letter/2/2bfe46/32.png) [@2Be](https://community.homey.app/u/2Be)\
**Post date:** [December 27, 2020, 3:12pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/77 "2020-12-27T15:12:57Z")

</div>

Once again @robertklep to the rescue! Thnx. This solved my problem!

---

<div class="post-metadata">

**Author:** ![Dennis\_van\_Dinter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dennis_van_dinter/32/28180_2.png) [@Dennis\_van\_Dinter](https://community.homey.app/u/Dennis_van_Dinter)\
**Post date:** [January 17, 2021, 4:07pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/78 "2021-01-17T16:07:10Z")

</div>

Hi,

I’m trying to install Assistant Relay:

> **[Releases · greghesp/assistant-relay](https://github.com/greghesp/assistant-relay/releases)**
>
> lay/releases

But I also need to install Python on Homey. Is this possible?

Regards,

Dennis

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [January 17, 2021, 4:21pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/79 "2021-01-17T16:21:46Z")

</div>

> [@Dennis\_van\_Dinter](#):
>
> But I also need to install Python on Homey

You need to develop an Homey App, This is not an Homey App.  
You could start here:  
[https://developer.athom.com/docs/apps-reference](https://developer.athom.com/docs/apps-reference)  
and  
[https://apps-sdk-v2.developer.athom.com/](https://apps-sdk-v2.developer.athom.com/)

---

<div class="post-metadata">

**Author:** ![mattrix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mattrix/32/17475_2.png) [@mattrix](https://community.homey.app/u/mattrix)\
**Post date:** [February 17, 2021, 5:00am UTC](https://community.homey.app/t/how-to-cli-install-method/198/80 "2021-02-17T05:00:15Z")

</div>

Hello all and specially @robertklep😃

I have Meross devices. I previsouly had success CLI installing [GitHub - bjwelker/com.merros.cloud: Meross Cloud devices for Homey](https://github.com/bjwelker/com.merros.cloud)

Recently the author added the mss210, as i have these devices it s awsome BUT after each installs i did, i have the app crashing on homey app.

During node prompt install i see these warnings :  
1/ npm install

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/0/e0ea502779da551b1f7ea97a73aaee0e211bb098.png)

2/ homey app install

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/9/b9c96628daacdc0ade3031fe6c1ee72d0badbadc.png)

I uninstalled node.js app on my windows then i reinstalled it. Downloaded the fresh github app. I did that many time with no success.

Any idea what it coud be ?

---

<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:** [February 17, 2021, 7:07am UTC](https://community.homey.app/t/how-to-cli-install-method/198/81 "2021-02-17T07:07:16Z")

</div>

> [@mattrix](#):
>
> Any idea what it coud be ?

Yes: your version of `npm` (which comes with Node.js) is too new, and the `homey` app cannot deal with it. But even though the error occurs, the app is still installed successfully (see last line).

If you want to get rid of the error, you should install `npm@6` (`npm install npm@6 -g`).

---

<div class="post-metadata">

**Author:** ![mattrix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mattrix/32/17475_2.png) [@mattrix](https://community.homey.app/u/mattrix)\
**Post date:** [February 17, 2021, 6:41pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/82 "2021-02-17T18:41:58Z")

</div>

Wow you were right. I had no more errors in the node js prompt.  
But I still have the app crashed syndrom ☹

---

<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:** [February 17, 2021, 7:01pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/83 "2021-02-17T19:01:22Z")

</div>

Your screenshot isn’t showing any crashes, though. Instead of `homey app install` you can use `homey app run`; that will run the app and show debug information.

---

<div class="post-metadata">

**Author:** ![mattrix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mattrix/32/17475_2.png) [@mattrix](https://community.homey.app/u/mattrix)\
**Post date:** [February 18, 2021, 7:06am UTC](https://community.homey.app/t/how-to-cli-install-method/198/84 "2021-02-18T07:06:02Z")

</div>

Now that s a challenge !  
I am posting here the debug i got running the homey app run on com.merros.cloud-master

Now i am going to search how to force install the missing modules ?

```
─────────────── Logging stdout & stderr ───────────────
internal/modules/cjs/loader.js:985
  throw err;
  ^

Error: Cannot find module './lib/websocket'
Require stack:
- /node_modules/ws/index.js
- /node_modules/mqtt/lib/connect/ws.js
- /node_modules/mqtt/lib/connect/index.js
- /node_modules/mqtt/mqtt.js
- /lib/meross.js
- /app.js
- /opt/homey-client/node_modules/homey-apps-sdk-v2/lib/SDK.js
- /opt/homey-client/node_modules/homey-apps-sdk-v2/index.js
- /opt/homey-client/system/manager/ManagerApps/bootstrap.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
    at Function.Module._load (internal/modules/cjs/loader.js:864:27)
    at Module.require (internal/modules/cjs/loader.js:1044:19)
    at Module.require (/opt/homey-client/node_modules/homey-apps-sdk-v2/index.js:14:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (/node_modules/ws/index.js:3:19)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/node_modules/ws/index.js',
    '/node_modules/mqtt/lib/connect/ws.js',
    '/node_modules/mqtt/lib/connect/index.js',
    '/node_modules/mqtt/mqtt.js',
    '/lib/meross.js',
    '/app.js',
    '/opt/homey-client/node_modules/homey-apps-sdk-v2/lib/SDK.js',
    '/opt/homey-client/node_modules/homey-apps-sdk-v2/index.js',
    '/opt/homey-client/system/manager/ManagerApps/bootstrap.js'
  ]
}

--- INFO: com.meross.cloud has been killed ---
```

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [February 20, 2021, 9:54pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/85 "2021-02-20T21:54:37Z")

</div>

Try:  
npm install

Or

npm update

---

<div class="post-metadata">

**Author:** ![mattrix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mattrix/32/17475_2.png) [@mattrix](https://community.homey.app/u/mattrix)\
**Post date:** [February 21, 2021, 8:52am UTC](https://community.homey.app/t/how-to-cli-install-method/198/86 "2021-02-21T08:52:26Z")

</div>

@Adrian_Rockall  
Did you try to install that app and di it work for you ?

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [February 21, 2021, 8:54am UTC](https://community.homey.app/t/how-to-cli-install-method/198/87 "2021-02-21T08:54:17Z")

</div>

> [@mattrix](#):
>
> Did you try to install that app and di it work for you ?

No, I’ve not tried it.

[Previous page](https://community.homey.app/t/how-to-cli-install-method/198.md?page=3)

[Next page](https://community.homey.app/t/how-to-cli-install-method/198.md?page=5)
