FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: PerlJoe am 16 Juni 2017, 20:21:24

Titel: [Gelöst] Alexa installieren - npm install Error
Beitrag von: PerlJoe am 16 Juni 2017, 20:21:24
Hallo zusammen,

ich versuche mich gerade an Alexa mit Fhem und habe alexa-fhem-0.3.4.tgz heruntergeladen und wie auf folgender Seite beschrieben installiert: https://wiki.fhem.de/wiki/Alexa-Fhem#Erstinstallation

Nach npm install kommen folgende Fehlermeldungen, habe kein sudo verwendet, aber davor:

npm ERR! Linux 4.9.24-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v7.10.0
npm ERR! npm  v4.2.0
npm ERR! path /opt/fhem/alexa-fhem
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access '/opt/fhem/alexa-fhem'
npm ERR!  { Error: EACCES: permission denied, access '/opt/fhem/alexa-fhem'
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/opt/fhem/alexa-fhem' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/pi/.npm/_logs/2017-06-16T18_12_19_851Z-debug.log


Im Logfile steht das gleiche. Habe ich was falsch gemacht?

Gruß und Danke.
Jörg

Edit: Bei dem Versuch das SSL Zertifikat zu erstellen mit ./createKey.sh kommt folgender Fehler: :(

pi@mainrasp:/opt/fhem/alexa-fhem $ ./createKey.sh
Generating a 2048 bit RSA private key
....................................................+++
...........................................+++
writing new private key to 'key.pem'
key.pem: Permission denied
1995876448:error:0200100D:system library:fopen:Permission denied:bss_file.c:398:fopen('key.pem','w')
1995876448:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:
Error opening Private Key key.pem
1995946080:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('key.pem','r')
1995946080:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:
unable to load Private Key
Titel: Antw:Alexa installieren - npm install Error
Beitrag von: PerlJoe am 16 Juni 2017, 20:51:25
Man muss wohl auch das entpacken mit dem normalen User und nicht als sudo machen.

Hat geklappt.

Gruß,
Jörg
Titel: Antw:Alexa installieren - npm install Error
Beitrag von: franky08 am 16 Juni 2017, 20:55:03
Hättest du mittels chown noch anpassen können ;)

VG
Frank
Titel: Antw:Alexa installieren - npm install Error
Beitrag von: PerlJoe am 16 Juni 2017, 21:27:26
Ja, wenn ich das gewusst hätte :)
Titel: Antw:Alexa installieren - npm install Error
Beitrag von: KernSani am 16 Juni 2017, 21:27:42
@PerlJoe: Schreibst du dann bitte noch [Gelöst] vor das Subject des ersten Posts?
Titel: Antw:[Gelöst] Alexa installieren - npm install Error
Beitrag von: PerlJoe am 16 Juni 2017, 21:31:50
Gerne, sorry.

Gruß