[HOW TO] CLI install method

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>

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

Hi

i’am running 14.16.0, installed this moring

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

1 Like

You are the master, THX!!!

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

Schermata 2021-03-27 alle 17.41.20

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

Solved thanks! I have enabled the root user

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


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

:slight_smile:
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.

Had the same issue, space in username, thanks!

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.

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

Be aware this is an English thread. However, there’s a Dutch post here that explains how to solve this issue.

1 Like

Thanks everything works

1 Like

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)

Maybe this can help you out

@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…

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.


Does anyone know what is wrong?
Thanks in advance

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

Just some things I found reading this topic