[HOW TO] CLI install method

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

1 Like

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

1 Like

thanks man!

this was the solution!

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

1 Like

U also tried homey login instead of athom login?

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

homey_login

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

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

looks better…
homey_login3

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

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

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

$ 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

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

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

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!

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

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.

1 Like

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

  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.

2 Likes

Are you using a proxy or antivirus-software?