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

<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:** [November 28, 2019, 6:29am UTC](https://community.homey.app/t/how-to-cli-install-method/198/27 "2019-11-28T06:29:22Z")

</div>

I wonder if Node has an issue with the ampersand (`&`) in your home directory name (`C:\Users\Mayel&Monique\`).

---

<div class="post-metadata">

**Author:** ![anon8748058](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@anon8748058](https://community.homey.app/u/anon8748058)\
**Post date:** [November 28, 2019, 9:25am UTC](https://community.homey.app/t/how-to-cli-install-method/198/28 "2019-11-28T09:25:44Z")

</div>

Yes, very sharp!  
If you look at the error message, it is truncated at the ampersand!

---

<div class="post-metadata">

**Author:** ![Linden85](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/linden85/32/17207_2.png) [@Linden85](https://community.homey.app/u/Linden85)\
**Post date:** [November 29, 2019, 4:05pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/29 "2019-11-29T16:05:18Z")

</div>

thanks man!

this was the solution!

---

<div class="post-metadata">

**Author:** ![Ralf74](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ralf74/32/20986_2.png) [@Ralf74](https://community.homey.app/u/Ralf74)\
**Post date:** [January 25, 2020, 3:38pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/30 "2020-01-25T15:38:32Z")

</div>

Hello Together,  
i´m new, and i have mayby same problems - im using newest 32bit LTS Version of nodejs on my older 32bit-computer. I installed homey CLI. But after that i still can´t reach homey via nodejs terminal…

![nodejs_Athom_login](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/5/e57fb5aec29583cbc550c3eebf084690cbb56f08.jpeg)

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [January 25, 2020, 3:45pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/31 "2020-01-25T15:45:39Z")

</div>

U also tried homey login instead of athom login?

---

<div class="post-metadata">

**Author:** ![Ralf74](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ralf74/32/20986_2.png) [@Ralf74](https://community.homey.app/u/Ralf74)\
**Post date:** [January 25, 2020, 3:47pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/32 "2020-01-25T15:47:00Z")

</div>

i forgot: i use node.js V12.14.1, should i use older one?

 ![nodejs_Version](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/f/8f6e0a7754457ceaab525896237eceab0b52695f.jpeg)

---

<div class="post-metadata">

**Author:** ![Ralf74](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ralf74/32/20986_2.png) [@Ralf74](https://community.homey.app/u/Ralf74)\
**Post date:** [January 25, 2020, 3:49pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/33 "2020-01-25T15:49:06Z")

</div>

![homey_login](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/2/12e0d4373cf1e758bfc2a04b8121c68861f644c8.jpeg)

---

<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 25, 2020, 3:51pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/34 "2020-01-25T15:51:20Z")

</div>

The package `athom-cli` has been replaced by the package `homey`, so try installing that instead (`npm i homey`)

---

<div class="post-metadata">

**Author:** ![Ralf74](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ralf74/32/20986_2.png) [@Ralf74](https://community.homey.app/u/Ralf74)\
**Post date:** [January 25, 2020, 4:00pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/35 "2020-01-25T16:00:23Z")

</div>

> [@robertklep](#):
>
> `npm i homey` )

 ![homey_login2](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/7/87258fef594abc057edafa8ff4dc662c04a52cfc.jpeg)

---

<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 25, 2020, 4:01pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/36 "2020-01-25T16:01:32Z")

</div>

_“or run npm with --force to overwrite files”_: `npm i --force homey`

---

<div class="post-metadata">

**Author:** ![Ralf74](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ralf74/32/20986_2.png) [@Ralf74](https://community.homey.app/u/Ralf74)\
**Post date:** [January 25, 2020, 4:13pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/37 "2020-01-25T16:13:02Z")

</div>

looks better…  
 ![homey_login3](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/7/474d6cfddaec69b9d500a0dee0efc22adeffd365.jpeg)

athom login  
or  
homey login  
doesn´t work - like before…

---

<div class="post-metadata">

**Author:** ![Ralf74](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ralf74/32/20986_2.png) [@Ralf74](https://community.homey.app/u/Ralf74)\
**Post date:** [January 25, 2020, 4:23pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/38 "2020-01-25T16:23:09Z")

</div>

Should i have to delete something first, or is it finally a too new version of node.js? (v12.14.1)

Thanks for helping me

---

<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 25, 2020, 8:13pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/39 "2020-01-25T20:13:59Z")

</div>

It’s not related to the Node version, which is working fine for me:

```auto
$ nvm run v12.14.1 ./node_modules/.bin/homey login
Running node v12.14.1 (npm v6.13.4)
✓ Logging in...
To log in with your Athom Account, please visit https://cli.athom.com?port=59803&clientId=XXX
? Paste the code: YYY
✓ You are now logged in as Robert Klep

```

---

<div class="post-metadata">

**Author:** ![Ralf74](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ralf74/32/20986_2.png) [@Ralf74](https://community.homey.app/u/Ralf74)\
**Post date:** [January 26, 2020, 1:30pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/40 "2020-01-26T13:30:24Z")

</div>

hmm - some ideas for an newbie like me?

Node.Js Version v12.14.1, Windows 7 32bit, i want to install Devolo Components App from Mapulo, which arent in the Devolo homey app

---

<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 26, 2020, 1:49pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/41 "2020-01-26T13:49:25Z")

</div>

I don’t use Windows myself so I don’t understand why it’s failing ☹

---

<div class="post-metadata">

**Author:** ![Joost\_Schevers](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joost_schevers/32/16498_2.png) [@Joost\_Schevers](https://community.homey.app/u/Joost_Schevers)\
**Post date:** [January 27, 2020, 10:04am UTC](https://community.homey.app/t/how-to-cli-install-method/198/42 "2020-01-27T10:04:04Z")

</div>

I installed NodeJS last weekend (on Windows), followed by the installation of the homey CLI.  
In my case the homey (login) command wasn’t recognized either.

What worked for me:

- close the command window used for installation
- start a new command window
- enter “homey login”

Note that the first time it will start the login process and in my case I was so slow that the (command window) homey prompt timed out.

I simply tried again and this time it did work.

Maybe this helps,  
good luck!

---

<div class="post-metadata">

**Author:** ![Ralf74](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ralf74/32/20986_2.png) [@Ralf74](https://community.homey.app/u/Ralf74)\
**Post date:** [January 27, 2020, 5:20pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/43 "2020-01-27T17:20:55Z")

</div>

Hello together,

if i type “homey login” it expects an script “homey.js” in a “homey folder” - but there is only a “athom-cli” folder with an Script “athom.js” .  
Copy, Rename folder and script doesn´t work.  
“athom login” doesn´t work also…

Some ideas?  
 ![Unbenannt](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/6/06d7b4eb4c3b53f75cd2e2b2bc11dbc631bf9128.jpeg)

---

<div class="post-metadata">

**Author:** ![johan\_bendz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_bendz/32/10344_2.png) [@johan\_bendz](https://community.homey.app/u/johan_bendz)\
**Post date:** [January 28, 2020, 8:19pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/44 "2020-01-28T20:19:21Z")

</div>

Hi there.  
First, you do not need to start the node.js command prompt, the normal cmd prompt works just fine.  
Then, fixing your problem… try this:

From normal cmd prompt.

1. npm install npm@latest -g

2. npm install node@latest -g

3. npm install homey@latest -g

4. Homey login

Not working? Reboot the PC and try Homey login from normal cmd prompt again. Still not working? Let us know.

---

<div class="post-metadata">

**Author:** ![Ralf74](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ralf74/32/20986_2.png) [@Ralf74](https://community.homey.app/u/Ralf74)\
**Post date:** [January 28, 2020, 10:52pm UTC](https://community.homey.app/t/how-to-cli-install-method/198/45 "2020-01-28T22:52:46Z")

</div>

Hi Johan,

looks quite better - near to goal:

1. **npm install npm@latest -g** works

2. i´ve had to type “ **npm install --force node@latest -g** ”, to overwrite older installation

3. i´ve had to type “ **npm install --force homey@latest -g** ”, to overwrite older installation

4. **Homey login** works, but on an newer way like in the first video above, i just have to login at homey webinterface, you don´t have to write email-adress and password at cmd window  
 ![weblogin](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/f/2f353dedd72b2218b3ea33d3ef53480720c651df.jpeg)

5. “ **homey app install** ” as shown in the second tutorial above, works  
But while installation some errors appears -  

Mapulu´s devolo app doens´t shown at homey apps after login - with cellphone app.

Do you have an idea?

Thanks a lot.

---

<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 29, 2020, 6:50am UTC](https://community.homey.app/t/how-to-cli-install-method/198/46 "2020-01-29T06:50:09Z")

</div>

Are you using a proxy or antivirus-software?

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

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