maddox / itunes-api

🎵 A simple server providing a RESTful service for controlling iTunes
MIT License
199 stars 45 forks source link

Need help installing #47

Closed SdeGeata closed 3 years ago

SdeGeata commented 3 years ago

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!

SdeGeata commented 3 years ago

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 (Usenode --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:

Any idea what I should do next? I would love to get this integration working.