Need help installing
SdeGeata opened this issue · 1 comments
Hello, I am a bit of a nube - trying to install this to get iTunes media player working in my Home Assistant.
I have downloaded the files and tried to install using Terminal. script/bootstrap gives me this:
`You don't have forever installed. You need to install it first.
Just install it with this command:
sudo npm install forever -g`
$ sudo npm install forever -g
results in:
sudo: npm: command not found
script/install
seems to do something:
Installing itunes-api...
but hangs there... restart of HA has no effect.
Please help!
Ok, got past the Bootstrap / Forever install... I was missing Node. Perhaps mention of that dependency in the installation instructions?
Anyhow, script/server won't run. It produces the following error messages:
StiofansMacBookPro:itunes-api-master stiofandegeata$ script/server warn: --minUptime not set. Defaulting to: 1000ms warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms (node:7237) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use
node --trace-warnings ...` to show where the warning was created)
(node:7237) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
node:internal/modules/cjs/loader:928
throw err;
^
Error: Cannot find module 'express'
Require stack:
- /Users/stiofandegeata/Documents/itunes-api-master/app.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:925:15)
at Function.Module._load (node:internal/modules/cjs/loader:769:27)
at Module.require (node:internal/modules/cjs/loader:997:19)
at require (node:internal/modules/cjs/helpers:92:18)
at Object. (/Users/stiofandegeata/Documents/itunes-api-master/app.js:4:15)
at Module._compile (node:internal/modules/cjs/loader:1108:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
at Module.load (node:internal/modules/cjs/loader:973:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/Users/stiofandegeata/Documents/itunes-api-master/app.js' ]
}
error: Forever detected script exited with code: 1
`
Any idea what I should do next? I would love to get this integration working.