# \[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:** 5

<div class="post-metadata">

**Author:** ![Frank\_H](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frank_h/32/16942_2.png) [@Frank\_H](https://community.homey.app/u/Frank_H)\
**Post date:** [March 15, 2021, 8:15am UTC](https://community.homey.app/t/how-to-cli-install-method/198/88 "2021-03-15T08:15:45Z")

</div>

Hi

I tired to install the gledopto app, but got an error message, any ideas in what iam doing wrong?

```
C:\Users\Frank\Desktop\com.gledopto-master>homey app install
✓ Pre-processing app...
✓ Running plugins...
✓ Running plugin `compose`...
[AppPluginCompose] Added Driver `gl-b-001z`
[AppPluginCompose] Added Driver `gl-b-001zs`
[AppPluginCompose] Added Driver `gl-b-008p`
[AppPluginCompose] Added Driver `gl-b-008z`
[AppPluginCompose] Added Driver `gl-c-006`
[AppPluginCompose] Added Driver `gl-c-007`
[AppPluginCompose] Added Driver `gl-c-008`
[AppPluginCompose] Added Driver `gl-c-008p`
[AppPluginCompose] Added Driver `gl-c-008s`
[AppPluginCompose] Added Driver `gl-c-009`
[AppPluginCompose] Added Driver `gl-d-004z`
[AppPluginCompose] Added Driver `gl-g-001z`
[AppPluginCompose] Added Driver `gl-g-007z`
[AppPluginCompose] Added Driver `gl-mc-001`
[AppPluginCompose] Added Driver `gl-mc-001p`
[AppPluginCompose] Added Driver `gl-s-003z`
[AppPluginCompose] Added Driver `gl-s-004z`
[AppPluginCompose] Added Driver `gl-s-007z`
[AppPluginCompose] Added Driver `tint_rgb`
[AppPluginCompose] Added Driver `tint_ww`
✓ Plugin `compose` finished
✓ Running plugin `zigbee`...
✓ Installing npm package (homey-zigbeedriver)
Trace: Error: Command failed: npm install homey-zigbeedriver --save
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://github.com/athombv/node-homey-log.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

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Frank\AppData\Roaming\npm-cache\_logs\2021-03-15T08_09_20_120Z-debug.log

    at ChildProcess.exithandler (child_process.js:308:12)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1048:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) {
  killed: false,
  code: 4294963238,
  signal: null,
  cmd: 'npm install homey-zigbeedriver --save'
}
    at App.preprocess (C:\Users\Frank\AppData\Roaming\npm\node_modules\homey\lib\App\index.js:224:17)
    at async App.install (C:\Users\Frank\AppData\Roaming\npm\node_modules\homey\lib\App\index.js:157:7)
    at async Object.exports.handler (C:\Users\Frank\AppData\Roaming\npm\node_modules\homey\bin\cmds\app\install.js:27:3)
Plugin `zigbee` did not finish:
Command failed: npm install homey-zigbeedriver --save
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://github.com/athombv/node-homey-log.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

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Frank\AppData\Roaming\npm-cache\_logs\2021-03-15T08_09_20_120Z-debug.log

Aborting.

C:\Users\Frank\Desktop\com.gledopto-master>
```

---

<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:** [March 15, 2021, 8:28am UTC](https://community.homey.app/t/how-to-cli-install-method/198/89 "2021-03-15T08:28:41Z")

</div>

Which version of Node.js are you running? Make sure it’s a recent version.

---

<div class="post-metadata">

**Author:** ![Frank\_H](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frank_h/32/16942_2.png) [@Frank\_H](https://community.homey.app/u/Frank_H)\
**Post date:** [March 15, 2021, 11:13am UTC](https://community.homey.app/t/how-to-cli-install-method/198/90 "2021-03-15T11:13:57Z")

</div>

Hi

i’am running 14.16.0, installed this moring

---

<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:** [March 15, 2021, 1:05pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/91 "2021-03-15T13:05:54Z")

</div>

Try to remove the file `package-lock.json` from the folder.

---

<div class="post-metadata">

**Author:** ![Frank\_H](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frank_h/32/16942_2.png) [@Frank\_H](https://community.homey.app/u/Frank_H)\
**Post date:** [March 15, 2021, 1:51pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/92 "2021-03-15T13:51:25Z")

</div>

You are the master, THX!!!

---

<div class="post-metadata">

**Author:** ![Alessandro\_Rossi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alessandro_rossi/32/37432_2.png) [@Alessandro\_Rossi](https://community.homey.app/u/Alessandro_Rossi)\
**Post date:** [March 27, 2021, 4:43pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/93 "2021-03-27T16:43:04Z")

</div>

Hi there! I followed step by step all the procedure, but I get an error when logging in… 😑

![Schermata 2021-03-27 alle 17.41.20](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/5/5525fb22652fcb7b54d56641601364262fb6c346.png)

What am I doing wrong? Thank you so much!!

---

<div class="post-metadata">

**Author:** ![Alessandro\_Rossi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alessandro_rossi/32/37432_2.png) [@Alessandro\_Rossi](https://community.homey.app/u/Alessandro_Rossi)\
**Post date:** [March 27, 2021, 6:42pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/94 "2021-03-27T18:42:42Z")

</div>

Solved thanks! I have enabled the root user

---

<div class="post-metadata">

**Author:** ![Jan\_Peeters](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_peeters/32/86660_2.png) [@Jan\_Peeters](https://community.homey.app/u/Jan_Peeters)\
**Post date:** [April 12, 2021, 6:30pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/95 "2021-04-12T18:30:19Z")

</div>

I had a lot of errors.  
Commands used:  
\*npm install  
\*npm install -g npm  
\*homey login  
\*homey app install

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/8/68f9f23b7aeed2be437e6a0cba4ed63beef6045a.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/d/bd9c748c58728463f4f50779ee22e7a667b7a356.png)

---

<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:** [April 12, 2021, 6:52pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/96 "2021-04-12T18:52:46Z")

</div>

Even though you have errors (Athom clearly never tests on Windows…), the app got installed anyway.

---

<div class="post-metadata">

**Author:** ![Jan\_Peeters](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_peeters/32/86660_2.png) [@Jan\_Peeters](https://community.homey.app/u/Jan_Peeters)\
**Post date:** [April 12, 2021, 7:08pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/97 "2021-04-12T19:08:19Z")

</div>

> [@robertklep](#):
>
> Athom clearly never tests on Windows

🙂  
Not really; it seemed that the fact that I had a space in my windows username was a problem.  
After removing the space in the username, the error was gone and the app was installed correctly.  
It wasn’t the first time.

---

<div class="post-metadata">

**Author:** ![Bas\_Engelen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bas_engelen/32/36165_2.png) [@Bas\_Engelen](https://community.homey.app/u/Bas_Engelen)\
**Post date:** [May 7, 2021, 8:22am UTC](https://community.homey.app/t/how-to-cli-install-method/198/98 "2021-05-07T08:22:04Z")

</div>

Had the same issue, space in username, thanks!

---

<div class="post-metadata">

**Author:** ![JPeters](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpeters/32/34254_2.png) [@JPeters](https://community.homey.app/u/JPeters)\
**Post date:** [October 18, 2021, 7:51pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/99 "2021-10-18T19:51:36Z")

</div>

Hallo, het was me gelukt echter zag ik dat mijn waardes niet veranderde, welke versie moet ik hebben?  
Ik had de master, en die werkte bij mij, maar die heeft de update flow kaart niet, de develop versie lukt mij niet ik krijg allemaal missing npm files

Command failed: node C:\Users\jefpe\AppData\Roaming\npm\node\_modules\homey\node\_modules\npm\lib\npm.js ls --parseable --all --only=prod  
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I’ll try to do my best with it!  
npm ERR! missing: raven@0.12.3, required by homey-log@1.0.5  
npm ERR! missing: uuid@3.0.0, required by raven@0.12.3  
npm ERR! missing: uuid@3.2.1, required by homey-wifidriver@1.0.8  
npm ERR! missing: underscore@1.13.1, required by homey-wifidriver@1.0.8  
npm ERR! missing: uuid@3.3.2, required by request@2.88.0  
npm ERR! missing: sshpk@1.16.1, required by http-signature@1.2.0  
npm ERR! missing: lodash@4.17.21, required by request-promise-core@1.1.1

Hoop dat iemand mij kan helpen.

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [October 18, 2021, 11:11pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/100 "2021-10-18T23:11:01Z")

</div>

Node js V12.16.1 of was dat de vraag niet?

---

<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:** [October 19, 2021, 5:53am UTC](https://community.homey.app/t/how-to-cli-install-method/198/101 "2021-10-19T05:53:34Z")

</div>

Be aware this is an English thread. However, there’s a Dutch post [here](https://community.homey.app/t/homey-npm-warn-read-shrinkwrap-this-version-of-npm-is-compatible-with-lockfileversion/53239/4) that explains how to solve this issue.

---

<div class="post-metadata">

**Author:** ![JPeters](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpeters/32/34254_2.png) [@JPeters](https://community.homey.app/u/JPeters)\
**Post date:** [October 24, 2021, 1:27pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/102 "2021-10-24T13:27:02Z")

</div>

Thanks everything works

---

<div class="post-metadata">

**Author:** ![VanGilles](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vangilles/32/11478_2.png) [@VanGilles](https://community.homey.app/u/VanGilles)\
**Post date:** [November 1, 2021, 9:07pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/103 "2021-11-01T21:07:48Z")

</div>

I also got the same errors about missing modules when I try to CLI install a SDK 2.0 app via the SDK 3.0 CLI with ‘homey app run’ and kills the app within seconds.

Did you find a sollution to resolve this issue?

(If I install the app from the app store the app installs without errors, but doesn’t work correctly which is the reason I want to modify some files)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [November 1, 2021, 9:30pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/104 "2021-11-01T21:30:50Z")

</div>

Maybe this can help you out

> **[Upgrading to SDK v3](https://apps.developer.homey.app/upgrade-guides/upgrading-to-sdk-v3)**
>
> How to upgrade to SDK v3 introduced in Homey v5.0.0

---

<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:** [November 2, 2021, 5:09am UTC](https://community.homey.app/t/how-to-cli-install-method/198/105 "2021-11-02T05:09:20Z")

</div>

@VanGilles  
Hi,  
It s far away now so i am not sure.  
Or i changed the computer OR the right command was no longer ‘homey app run’ but something very short like homey run or homey app install…  
Sorry i cant help more, let us know if you found your way…

---

<div class="post-metadata">

**Author:** ![Marten\_Israelsson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marten_israelsson/32/50025_2.png) [@Marten\_Israelsson](https://community.homey.app/u/Marten_Israelsson)\
**Post date:** [January 9, 2022, 11:30pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/106 "2022-01-09T23:30:05Z")

</div>

I have installed Homey CLI tools: `npm install -g homey`  
Then trying to log in to Homey from command prompt: ‘homey login’ , webbrowser is not opening. there is just a lot of rubbish spinning in the command window.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/7/a7ddcf6bfcd964ac4a655969eae616084a88809d.png)  
Does anyone know what is wrong?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 9, 2022, 11:39pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/107 "2022-01-09T23:39:50Z")

</div>

Start cmd as Admin?  
Allow Homey’s IP through the firewall?  
A username with whitespaces in it?  
Or this:

> [@\[HOW TO\] CLI install method](https://community.homey.app/t/how-to-cli-install-method/198/13):
>
> Try searching for [cli homey offline](https://community.homey.app/search?q=cli%20homey%20offline). It’s a common issue, in my opinion caused by Homey’s not-so-stellar networking setup. Rebooting Homey and/or your router and/or your WiFi access point might solve it.

Just some things I found reading this topic

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

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