[Gelöst] Alexa installieren - npm install Error

Begonnen von PerlJoe, 16 Juni 2017, 20:21:24

Vorheriges Thema - Nächstes Thema

PerlJoe

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

PerlJoe

Man muss wohl auch das entpacken mit dem normalen User und nicht als sudo machen.

Hat geklappt.

Gruß,
Jörg

franky08

Hättest du mittels chown noch anpassen können ;)

VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

PerlJoe


KernSani

@PerlJoe: Schreibst du dann bitte noch [Gelöst] vor das Subject des ersten Posts?
RasPi: RFXTRX, HM, zigbee2mqtt, mySensors, JeeLink, miLight, squeezbox, Alexa, Siri, ...

PerlJoe