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
Man muss wohl auch das entpacken mit dem normalen User und nicht als sudo machen.
Hat geklappt.
Gruß,
Jörg
Hättest du mittels chown noch anpassen können ;)
VG
Frank
Ja, wenn ich das gewusst hätte :)
@PerlJoe: Schreibst du dann bitte noch [Gelöst] vor das Subject des ersten Posts?
Gerne, sorry.
Gruß