Closed agaudi66 closed 3 years ago
This seems a npm package issue, I would recommend the following:
https://forum.iobroker.net/topic/27054/problem-nach-versuchtem-nodejs-update/12
This topic suggests a dual node installation. What I did:
sudo apt-get purge node sudo apt-get purge nodejs sudo apt-get purge npm
I checked for the presence of node* files in /usr/local/bin/ and /usr/bin/. None were found.
sudo apt install -y nodejs
I checked the versions installed: node -v v8.11.1 npm -v not found /usr/bin/node -v v8.11.1 nodejs -v v8.11.1
This gives a message that the nodejs*.deb file is not found. Now I can go back to installing v8.11.1, but this brings me back to were I started.
What else should/could I try?
Hello empierre,
After removing node, nodejs and npm as suggested in the forum post you proposed, I followed the installation procedure for raspberry pi 3b as you published at Gifhub.
It seemed to go well, until the installation of MDAH. It ended in a load of (error) messages. I have attached a txt-file with the output.
I hope you can identify what goes wrong and how to fix it.
Kind regards,
Van: Emmanuel notifications@github.com Verzonden: maandag 21 september 2020 09:06 Aan: empierre/MyDomoAtHome MyDomoAtHome@noreply.github.com CC: agaudi66 arnold.van.den.heurik@gmail.com; Author author@noreply.github.com Onderwerp: Re: [empierre/MyDomoAtHome] MDAH break after upgrade (#194)
This seems a npm package issue, I would recommend the following:
https://forum.iobroker.net/topic/27054/problem-nach-versuchtem-nodejs-update/12
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/empierre/MyDomoAtHome/issues/194#issuecomment-695940793 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ARBSALI4PJDOZLTM6CFAYBLSG33O7ANCNFSM4RSG56FQ . https://github.com/notifications/beacon/ARBSALICWMERA4QY4ZDELL3SG33O7A5CNFSM4RSG56F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFF5TNOI.gif
pi@HeurEekmaPi:~ $ sudo apt-get install MyDomoAtHome Pakketlijsten worden ingelezen... Klaar Boom van vereisten wordt opgebouwd De statusinformatie wordt gelezen... Klaar Let op, 'mydomoathome' wordt geselecteerd in plaats van 'MyDomoAtHome' De volgende NIEUWE pakketten zullen geïnstalleerd worden: mydomoathome 0 opgewaardeerd, 1 nieuw geïnstalleerd, 0 te verwijderen en 1 niet opgewaardeerd . Er moeten 0 B/6203 kB aan archieven opgehaald worden. Na deze bewerking zal er 31,1 MB extra schijfruimte gebruikt worden. WAARSCHUWING: De volgende pakketten kunnen niet geauthenticeerd worden! mydomoathome Wilt u deze pakketten installeren zonder verificatie? [j/N] j (Database wordt ingelezen ... 198741 bestanden en mappen momenteel geïnstalleerd .) Uitpakken van .../mydomoathome_0.2.42_all.deb wordt voorbereid... /usr/local/bin/forever -> /usr/local/lib/node_modules/forever/bin/forever forever@3.0.2 /usr/local/lib/node_modules/forever ├── object-assign@4.1.1 ├── clone@2.1.2 ├── colors@0.6.2 ├── async@1.5.2 ├── mkdirp@0.5.5 (minimist@1.2.5) ├── cliff@0.1.10 (eyes@0.1.8, colors@1.0.3) ├── prettyjson@1.2.1 (minimist@1.2.5, colors@1.4.0) ├── nssocket@0.6.0 (eventemitter2@0.4.14, lazy@1.0.11) ├── nconf@0.10.0 (ini@1.3.5, secure-keys@1.0.0) ├── yargs@3.32.0 (decamelize@1.2.0, y18n@3.2.1, camelcase@2.1.1, window-size@0.1 .4, os-locale@1.4.0, cliui@3.2.0, string-width@1.0.2) ├── winston@0.8.3 (cycle@1.0.3, eyes@0.1.8, async@0.2.10, stack-trace@0.0.10, is stream@0.1.2, pkginfo@0.3.1) ├── utile@0.3.0 (deep-equal@0.2.2, async@0.9.2, i@0.3.6, ncp@1.0.1, rimraf@2.7.1 ) ├── shush@1.0.0 (strip-json-comments@0.1.3, caller@0.0.1) ├── forever-monitor@3.0.1 (minimatch@3.0.4, ps-tree@1.2.0, broadway@0.3.6, choki dar@2.1.8) ├── flatiron@0.4.3 (director@1.2.7, optimist@0.6.0, prompt@0.2.14, broadway@0.3. 6) └── deep-equal@1.1.1 (is-arguments@1.0.4, object-keys@1.1.1, is-date-object@1.0. 2, is-regex@1.1.1, regexp.prototype.flags@1.3.0, object-is@1.1.2)
utf-8-validate@5.0.2 install /usr/local/lib/node_modules/pm2/node_modules/@pm2 /agent/node_modules/utf-8-validate node-gyp-build
make: Map '/usr/local/lib/node_modules/pm2/node_modules/@pm2/agent/node_modules/ utf-8-validate/build' wordt binnengegaan CC(target) Release/obj.target/validation/src/validation.o ../src/validation.c:3:22: fatal error: node_api.h: Bestand of map bestaat niet
^
compilation terminated.
validation.target.mk:94: recept voor doel 'Release/obj.target/validation/src/val idation.o' is mislukt
make: *** [Release/obj.target/validation/src/validation.o] Fout 1
make: Map '/usr/local/lib/node_modules/pm2/node_modules/@pm2/agent/node_modules/ utf-8-validate/build' wordt verlaten
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/nodemodules/npm/node modules/node-gyp/lib/build.js:285:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:200:12)
gyp ERR! System Linux 4.19.66-v7+
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/n ode-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/pm2/node_modules/@pm2/agent/node_module s/utf-8-validate
gyp ERR! node -v v4.2.2
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
utf-8-validate@5.0.2 install /usr/local/lib/node_modules/pm2/node_modules/@pm2 /js-api/node_modules/utf-8-validate node-gyp-build
make: Map '/usr/local/lib/node_modules/pm2/node_modules/@pm2/js-api/node_modules /utf-8-validate/build' wordt binnengegaan CC(target) Release/obj.target/validation/src/validation.o ../src/validation.c:3:22: fatal error: node_api.h: Bestand of map bestaat niet
^
compilation terminated.
validation.target.mk:94: recept voor doel 'Release/obj.target/validation/src/val idation.o' is mislukt
make: *** [Release/obj.target/validation/src/validation.o] Fout 1
make: Map '/usr/local/lib/node_modules/pm2/node_modules/@pm2/js-api/node_modules /utf-8-validate/build' wordt verlaten
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/nodemodules/npm/node modules/node-gyp/lib/build.js:285:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:200:12)
gyp ERR! System Linux 4.19.66-v7+
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/n ode-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/pm2/node_modules/@pm2/js-api/node_modul es/utf-8-validate
gyp ERR! node -v v4.2.2
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
bufferutil@4.0.1 install /usr/local/lib/node_modules/pm2/node_modules/@pm2/age nt/node_modules/bufferutil node-gyp-build
make: Map '/usr/local/lib/node_modules/pm2/node_modules/@pm2/agent/node_modules/ bufferutil/build' wordt binnengegaan CC(target) Release/obj.target/bufferutil/src/bufferutil.o ../src/bufferutil.c:3:22: fatal error: node_api.h: Bestand of map bestaat niet
^
compilation terminated.
bufferutil.target.mk:94: recept voor doel 'Release/obj.target/bufferutil/src/buf ferutil.o' is mislukt
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Fout 1
make: Map '/usr/local/lib/node_modules/pm2/node_modules/@pm2/agent/node_modules/ bufferutil/build' wordt verlaten
ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/nodemodules/npm/node modules/node-gyp/lib/build.js:285:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:200:12)
gyp ERR! System Linux 4.19.66-v7+
command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/ bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/pm2/node_modules/@pm2/agent/node_module s/bufferutil
gyp ERR! node -v v4.2.2
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
bufferutil@4.0.1 install /usr/local/lib/node_modules/pm2/node_modules/@pm2/js- api/node_modules/bufferutil node-gyp-build
make: Map '/usr/local/lib/node_modules/pm2/node_modules/@pm2/js-api/node_modules /bufferutil/build' wordt binnengegaan CC(target) Release/obj.target/bufferutil/src/bufferutil.o ../src/bufferutil.c:3:22: fatal error: node_api.h: Bestand of map bestaat niet
^
compilation terminated.
bufferutil.target.mk:94: recept voor doel 'Release/obj.target/bufferutil/src/buf ferutil.o' is mislukt
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Fout 1
make: Map '/usr/local/lib/node_modules/pm2/node_modules/@pm2/js-api/node_modules /bufferutil/build' wordt verlaten
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/nodemodules/npm/node modules/node-gyp/lib/build.js:285:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:200:12)
gyp ERR! System Linux 4.19.66-v7+
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/n ode-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/pm2/node_modules/@pm2/js-api/node_modul es/bufferutil
gyp ERR! node -v v4.2.2
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
npm ERR! Linux 4.19.66-v7+
npm ERR! argv "/usr/bin/node" "/usr/local/bin/npm" "install" "-g" "pm2"
npm ERR! node v4.2.2
npm ERR! npm v2.15.12
npm ERR! code ELIFECYCLE
npm ERR! utf-8-validate@5.0.2 install: node-gyp-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the utf-8-validate@5.0.2 install script 'node-gyp-build'.
npm ERR! This is most likely a problem with the utf-8-validate package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs utf-8-validate
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls utf-8-validate
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /npm-debug.log dpkg: fout bij verwerken van archief /var/cache/apt/archives/mydomoathome_0.2.42 _all.deb (--unpack): subproces nieuw pre-installation script gaf een foutwaarde 1 terug Fouten gevonden tijdens verwerken van: /var/cache/apt/archives/mydomoathome_0.2.42_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) pi@HeurEekmaPi:~ $
Hello,
I would suggest trying another version of nodejs, since it is where the issue comes from (or from the sub module pm2)
On Wed, Sep 23, 2020 at 2:40 PM agaudi66 notifications@github.com wrote:
Hello empierre,
After removing node, nodejs and npm as suggested in the forum post you proposed, I followed the installation procedure for raspberry pi 3b as you published at Gifhub.
It seemed to go well, until the installation of MDAH. It ended in a load of (error) messages. I have attached a txt-file with the output.
I hope you can identify what goes wrong and how to fix it.
Kind regards,
Arnold van den Heurik
Van: Emmanuel notifications@github.com Verzonden: maandag 21 september 2020 09:06 Aan: empierre/MyDomoAtHome MyDomoAtHome@noreply.github.com CC: agaudi66 arnold.van.den.heurik@gmail.com; Author < author@noreply.github.com> Onderwerp: Re: [empierre/MyDomoAtHome] MDAH break after upgrade (#194)
This seems a npm package issue, I would recommend the following:
https://forum.iobroker.net/topic/27054/problem-nach-versuchtem-nodejs-update/12
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/empierre/MyDomoAtHome/issues/194#issuecomment-695940793> , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ARBSALI4PJDOZLTM6CFAYBLSG33O7ANCNFSM4RSG56FQ> . < https://github.com/notifications/beacon/ARBSALICWMERA4QY4ZDELL3SG33O7A5CNFSM4RSG56F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFF5TNOI.gif>
pi@HeurEekmaPi:~ $ sudo apt-get install MyDomoAtHome Pakketlijsten worden ingelezen... Klaar Boom van vereisten wordt opgebouwd De statusinformatie wordt gelezen... Klaar Let op, 'mydomoathome' wordt geselecteerd in plaats van 'MyDomoAtHome' De volgende NIEUWE pakketten zullen geïnstalleerd worden: mydomoathome 0 opgewaardeerd, 1 nieuw geïnstalleerd, 0 te verwijderen en 1 niet opgewaardeerd . Er moeten 0 B/6203 kB aan archieven opgehaald worden. Na deze bewerking zal er 31,1 MB extra schijfruimte gebruikt worden. WAARSCHUWING: De volgende pakketten kunnen niet geauthenticeerd worden! mydomoathome Wilt u deze pakketten installeren zonder verificatie? [j/N] j (Database wordt ingelezen ... 198741 bestanden en mappen momenteel geïnstalleerd .) Uitpakken van .../mydomoathome_0.2.42_all.deb wordt voorbereid... /usr/local/bin/forever -> /usr/local/lib/node_modules/forever/bin/forever forever@3.0.2 /usr/local/lib/node_modules/forever ├── object-assign@4.1.1 ├── clone@2.1.2 ├── colors@0.6.2 ├── async@1.5.2 ├── mkdirp@0.5.5 (minimist@1.2.5) ├── cliff@0.1.10 (eyes@0.1.8, colors@1.0.3) ├── prettyjson@1.2.1 (minimist@1.2.5, colors@1.4.0) ├── nssocket@0.6.0 (eventemitter2@0.4.14, lazy@1.0.11) ├── nconf@0.10.0 (ini@1.3.5, secure-keys@1.0.0) ├── yargs@3.32.0 (decamelize@1.2.0, y18n@3.2.1, camelcase@2.1.1, window-size@0.1 .4, os-locale@1.4.0, cliui@3.2.0, string-width@1.0.2) ├── winston@0.8.3 (cycle@1.0.3, eyes@0.1.8, async@0.2.10, stack-trace@0.0.10, is stream@0.1.2, pkginfo@0.3.1) ├── utile@0.3.0 (deep-equal@0.2.2, async@0.9.2, i@0.3.6, ncp@1.0.1, rimraf@2.7.1 ) ├── shush@1.0.0 (strip-json-comments@0.1.3, caller@0.0.1) ├── forever-monitor@3.0.1 (minimatch@3.0.4, ps-tree@1.2.0, broadway@0.3.6, choki dar@2.1.8) ├── flatiron@0.4.3 (director@1.2.7, optimist@0.6.0, prompt@0.2.14, broadway@0.3. 6) └── deep-equal@1.1.1 (is-arguments@1.0.4, object-keys@1.1.1, is-date-object@1.0. 2, is-regex@1.1.1, regexp.prototype.flags@1.3.0, object-is@1.1.2)
utf-8-validate@5.0.2 install /usr/local/lib/node_modules/pm2/node_modules/@pm2 /agent/node_modules/utf-8-validate node-gyp-build
make: Map '/usr/local/lib/node_modules/pm2/node_modules/@pm2/agent/node_modules/ utf-8-validate/build' wordt binnengegaan CC(target) Release/obj.target/validation/src/validation.o ../src/validation.c:3:22: fatal error: node_api.h: Bestand of map bestaat niet
include
^ compilation terminated. validation.target.mk:94: recept voor doel 'Release/obj.target/validation/src/val idation.o' is mislukt make: *** [Release/obj.target/validation/src/validation.o] Fout 1 make: Map '/usr/local/lib/node_modules/pm2/node_modules/@pm2/agent/node_modules/ utf-8-validate/build' wordt verlaten gyp ERR! build error gyp ERR! stack Error:
make
failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/nodemodules/npm/node modules/node-gyp/lib/build.js:285:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:200:12) gyp ERR! System Linux 4.19.66-v7+ gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/n ode-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/pm2/node_modules/@pm2/agent/node_module s/utf-8-validate gyp ERR! node -v v4.2.2 gyp ERR! node-gyp -v v3.6.0 gyp ERR! not okutf-8-validate@5.0.2 install /usr/local/lib/node_modules/pm2/node_modules/@pm2 /js-api/node_modules/utf-8-validate node-gyp-build
make: Map '/usr/local/lib/node_modules/pm2/node_modules/@pm2/js-api/node_modules /utf-8-validate/build' wordt binnengegaan CC(target) Release/obj.target/validation/src/validation.o ../src/validation.c:3:22: fatal error: node_api.h: Bestand of map bestaat niet
include
^ compilation terminated. validation.target.mk:94: recept voor doel 'Release/obj.target/validation/src/val idation.o' is mislukt make: *** [Release/obj.target/validation/src/validation.o] Fout 1 make: Map '/usr/local/lib/node_modules/pm2/node_modules/@pm2/js-api/node_modules /utf-8-validate/build' wordt verlaten gyp ERR! build error gyp ERR! stack Error:
make
failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/nodemodules/npm/node modules/node-gyp/lib/build.js:285:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:200:12) gyp ERR! System Linux 4.19.66-v7+ gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/n ode-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/pm2/node_modules/@pm2/js-api/node_modul es/utf-8-validate gyp ERR! node -v v4.2.2 gyp ERR! node-gyp -v v3.6.0 gyp ERR! not okbufferutil@4.0.1 install /usr/local/lib/node_modules/pm2/node_modules/@pm2/age nt/node_modules/bufferutil node-gyp-build
make: Map '/usr/local/lib/node_modules/pm2/node_modules/@pm2/agent/node_modules/ bufferutil/build' wordt binnengegaan CC(target) Release/obj.target/bufferutil/src/bufferutil.o ../src/bufferutil.c:3:22: fatal error: node_api.h: Bestand of map bestaat niet
include
^ compilation terminated. bufferutil.target.mk:94: recept voor doel 'Release/obj.target/bufferutil/src/buf ferutil.o' is mislukt make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Fout 1 make: Map '/usr/local/lib/node_modules/pm2/node_modules/@pm2/agent/node_modules/ bufferutil/build' wordt verlaten ERR! build error gyp ERR! stack Error:
make
failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/nodemodules/npm/node modules/node-gyp/lib/build.js:285:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:200:12) gyp ERR! System Linux 4.19.66-v7+ command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/ bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/pm2/node_modules/@pm2/agent/node_module s/bufferutil gyp ERR! node -v v4.2.2 gyp ERR! node-gyp -v v3.6.0 gyp ERR! not okbufferutil@4.0.1 install /usr/local/lib/node_modules/pm2/node_modules/@pm2/js- api/node_modules/bufferutil node-gyp-build
make: Map '/usr/local/lib/node_modules/pm2/node_modules/@pm2/js-api/node_modules /bufferutil/build' wordt binnengegaan CC(target) Release/obj.target/bufferutil/src/bufferutil.o ../src/bufferutil.c:3:22: fatal error: node_api.h: Bestand of map bestaat niet
include
^ compilation terminated. bufferutil.target.mk:94: recept voor doel 'Release/obj.target/bufferutil/src/buf ferutil.o' is mislukt make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Fout 1 make: Map '/usr/local/lib/node_modules/pm2/node_modules/@pm2/js-api/node_modules /bufferutil/build' wordt verlaten gyp ERR! build error gyp ERR! stack Error:
make
failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/nodemodules/npm/node modules/node-gyp/lib/build.js:285:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:200:12) gyp ERR! System Linux 4.19.66-v7+ gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/n ode-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/pm2/node_modules/@pm2/js-api/node_modul es/bufferutil gyp ERR! node -v v4.2.2 gyp ERR! node-gyp -v v3.6.0 gyp ERR! not ok npm ERR! Linux 4.19.66-v7+ npm ERR! argv "/usr/bin/node" "/usr/local/bin/npm" "install" "-g" "pm2" npm ERR! node v4.2.2 npm ERR! npm v2.15.12 npm ERR! code ELIFECYCLEnpm ERR! utf-8-validate@5.0.2 install:
node-gyp-build
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the utf-8-validate@5.0.2 install script 'node-gyp-build'. npm ERR! This is most likely a problem with the utf-8-validate package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp-build npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs utf-8-validate npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm ERR! npm owner ls utf-8-validate npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request: npm ERR! /npm-debug.log dpkg: fout bij verwerken van archief /var/cache/apt/archives/mydomoathome_0.2.42 _all.deb (--unpack): subproces nieuw pre-installation script gaf een foutwaarde 1 terug Fouten gevonden tijdens verwerken van: /var/cache/apt/archives/mydomoathome_0.2.42_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) pi@HeurEekmaPi:~ $
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/empierre/MyDomoAtHome/issues/194#issuecomment-697337632, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXTDCURW52TO5TV3UFRGB3SHHUFJANCNFSM4RSG56FQ .
Dear Emmanuel,
Thanks for your quick response.
I did the following:
sudo apt-get remove nodejs sudo apt-get install nodejs sudo apt-get install MyDomoAtHome
node -v: v8.11.1 nodejs -v: v8.11.1 npm -v: 2.15.12
Now it works again.
Thanks again.
Hello,
I am (was) running MDAH on a Raspberry PI 3B (Raspian). After an update/upgrade, the connection to ImperiAtHome is lost.
I have tried to reinstal MDAH, but I get stuck.
Below what I did and what happened. I am afraid the Putty output is in Dutch. I will summarize the results in English.
Checked the node response (overview of devices in Chrome browser): this was OK. All nodes (devices) are reported.
Then I followed the install procedure as sugested on Github:
Check the nodeJS version installed: nodejs and nodejs-doc reported: 8.11.1~dfsg-2~bpo9+1
This should return version 4.x or above so the nodeJS version seems OK.
I tried to install npm and then upgrade it to the latest 2.x version. This resulted in the following errors when I installed MDAH
Instellen van mydomoathome (0.2.42) ... npm ERR! Linux 4.19.66-v7+ npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "rebuild" npm ERR! node v8.11.1 npm ERR! npm v2.14.7 npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'internal/util/types' npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request: npm ERR! /usr/share/mydomoathome/app/npm-debug.log dpkg: fout bij verwerken van pakket mydomoathome (--configure): subproces post-installation script geïnstalleerd gaf een foutwaarde 1 terug Fouten gevonden tijdens verwerken van: mydomoathome E: Sub-process /usr/bin/dpkg returned an error code (1)
content of npm-debug.log
0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install' ] 2 info using npm@2.14.7 3 info using node@v8.11.1 4 verbose readDependencies loading dependencies from /usr/bin/package.json 5 error install Couldn't read dependencies 6 verbose stack Error: ENOENT: no such file or directory, open '/usr/bin/package.json' 7 verbose cwd /usr/bin 8 error Linux 4.14.79-v7+ 9 error argv "/usr/bin/node" "/usr/bin/npm" "install" 10 error node v8.11.1 11 error npm v2.14.7 12 error path /usr/bin/package.json 13 error code ENOPACKAGEJSON 14 error errno -2 15 error syscall open 16 error package.json ENOENT: no such file or directory, open '/usr/bin/package.json' 16 error package.json This is most likely not a problem with npm itself. 16 error package.json npm can't find a package.json file in your current directory. 17 verbose exit [ -2, true ]
I am stuck. What is wrong here?