<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[npm ERR! cb() never called!  _  when trying to install MMM-RTSPStream]]></title><description><![CDATA[<p dir="auto">Hey guys,</p>
<p dir="auto">i actually downgraded my MM to 2.1.0 and electron 1.4.15 cause of the “CPU Usage Problem”…<br />
However the MM runs very well and all Modules are fluety.</p>
<p dir="auto">Now i was trying to install the MMM-RTSPStream Module but get an error message. All other modules, where i needed to use npm install were good.</p>
<p dir="auto">i just clone the module into my MagicMirror/modules folder and cd in the new folder. when i type in “nom install” i get the message below:</p>
<pre><code>pi@MagicMirror:~ $ cd ~/MagicMirror/modules
pi@MagicMirror:~/MagicMirror/modules $ git clone https://github.com/shbatm/MMM-RTSPStream.git
Klone nach 'MMM-RTSPStream' ...
remote: Counting objects: 162, done.
remote: Total 162 (delta 0), reused 0 (delta 0), pack-reused 162
Empfange Objekte: 100% (162/162), 1.02 MiB | 804.00 KiB/s, Fertig.
Löse Unterschiede auf: 100% (102/102), Fertig.
pi@MagicMirror:~/MagicMirror/modules $ cd MMM-RTSPStream
pi@MagicMirror:~/MagicMirror/modules/MMM-RTSPStream $ npm install
npm ERR! cb() never called!
pi@MagicMirror:~/MagicMirror/modules/MMM-RTSPStream $
</code></pre>
<p dir="auto">Well, i am not a brilliant programmer, so i hope to get some help of you guys.</p>
<p dir="auto">Thank you very much :)</p>
]]></description><link>https://forum.magicmirror.builders/topic/5806/npm-err-cb-never-called-_-when-trying-to-install-mmm-rtspstream</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 02:16:33 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/5806.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 21 Dec 2017 17:28:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to npm ERR! cb() never called!  _  when trying to install MMM-RTSPStream on Fri, 22 Dec 2017 22:26:58 GMT]]></title><description><![CDATA[<p dir="auto">It may be the downgrade or a bug in the post install script for my module. Backstory: My module tries to install a patch to the main electron.js file on older MM versions so it can safely close the streams when you shut down the mirror - this is now included in the core MM code and is not installed if the code already exists.</p>
<p dir="auto">The errors with npm upgrade: it should be <code>sudo</code> before that line, that’s why you have a bunch of permission errore, but the node update took care of the npm update too.</p>
<p dir="auto">To fix the mirror install, replace <code>MagicMirror/js/electron.js</code> with a fresh copy from github for your version of MM to undo whatever the patch broke when it failed.</p>
]]></description><link>https://forum.magicmirror.builders/post/32645</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/32645</guid><dc:creator><![CDATA[shbatm]]></dc:creator><pubDate>Fri, 22 Dec 2017 22:26:58 GMT</pubDate></item><item><title><![CDATA[Reply to npm ERR! cb() never called!  _  when trying to install MMM-RTSPStream on Fri, 22 Dec 2017 17:52:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shbatm" aria-label="Profile: shbatm">@<bdi>shbatm</bdi></a> said in <a href="/post/32634">npm ERR! cb() never called! _ when trying to install MMM-RTSPStream</a>:</p>
<blockquote>
<p dir="auto">npm install -g npm</p>
</blockquote>
<p dir="auto">as i typed in this, it started to install and shows this:</p>
<pre><code>npm ERR! Linux 4.9.59-v7+
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "npm"
npm ERR! node v6.12.2
npm ERR! npm  v3.10.10
npm ERR! path /usr/lib/node_modules/npm/node_modules/abbrev
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access '/usr/lib/node_modules/npm/node_modules/abbrev'
npm ERR!     at Error (native)
npm ERR!  { Error: EACCES: permission denied, access '/usr/lib/node_modules/npm/node_modules/abbrev'
npm ERR!     at Error (native)
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/lib/node_modules/npm/node_modules/abbrev' }
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-debug.log
</code></pre>
<p dir="auto">so i did it as root and rebooted my pi.</p>
<p dir="auto">now i installed your module and got some warnings AND some errors:</p>
<pre><code>pi@MagicMirror:~/MagicMirror/modules/MMM-RTSPStream $ npm install
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha1-QFUCsAfzGcP0cXXER0UnMA8qta0= integrity checksum failed when using sha1: wanted sha1-QFUCsAfzGcP0cXXER0UnMA8qta0= but got sha512-zr6QQnzLt3Ja0t0XI8gws2kn7zV2p0l/D3kreNvS6hFZhVU5g+uY/30l42jbgt0XGcNBEmBDGJR71J692V92tA==. (260 bytes)
npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.

&gt; MMM-RTSPStream@1.2.1 postinstall /home/pi/MagicMirror/modules/MMM-RTSPStream
&gt; ./install_sd_patch.sh &amp;&amp; sudo npm i -g http-server

Applying Graceful Shutdown patch to MagicMirror.
error: Anwendung des Patches fehlgeschlagen: js/electron.js:96
error: js/electron.js: Patch konnte nicht angewendet werden
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! MMM-RTSPStream@1.2.1 postinstall: `./install_sd_patch.sh &amp;&amp; sudo npm i -g http-server`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the MMM-RTSPStream@1.2.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2017-12-22T17_39_55_666Z-debug.log
pi@MagicMirror:~/MagicMirror/modules/MMM-RTSPStream $ 
</code></pre>
<p dir="auto">edit:</p>
<p dir="auto">i took a look in the debug_log file after the reboot of the pi  (2017-12-22T17_36_34_105Z-debug.log) :</p>
<pre><code>0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using npm@5.6.0
3 info using node@v9.2.1
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle magicmirror@2.1.0~prestart: magicmirror@2.1.0
6 info lifecycle magicmirror@2.1.0~start: magicmirror@2.1.0
7 verbose lifecycle magicmirror@2.1.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle magicmirror@2.1.0~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/MagicMirro$
9 verbose lifecycle magicmirror@2.1.0~start: CWD: /home/pi/MagicMirror
10 silly lifecycle magicmirror@2.1.0~start: Args: [ '-c', 'electron js/electron.js' ]
11 silly lifecycle magicmirror@2.1.0~start: Returned: code: 1  signal: null
12 info lifecycle magicmirror@2.1.0~start: Failed to exec start script
13 verbose stack Error: magicmirror@2.1.0 start: `electron js/electron.js`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.&lt;anonymous&gt; (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
13 verbose stack     at EventEmitter.emit (events.js:159:13)
13 verbose stack     at ChildProcess.&lt;anonymous&gt; (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:159:13)
13 verbose stack     at maybeClose (internal/child_process.js:943:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
14 verbose pkgid magicmirror@2.1.0
15 verbose cwd /home/pi/MagicMirror
16 verbose Linux 4.9.59-v7+
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
18 verbose node v9.2.1
19 verbose npm  v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error magicmirror@2.1.0 start: `electron js/electron.js`
22 error Exit status 1
23 error Failed at the magicmirror@2.1.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
</code></pre>
<p dir="auto">could it be, that my downgrade to 2.1.0 is to blame?</p>
]]></description><link>https://forum.magicmirror.builders/post/32635</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/32635</guid><dc:creator><![CDATA[cruunnerr]]></dc:creator><pubDate>Fri, 22 Dec 2017 17:52:41 GMT</pubDate></item><item><title><![CDATA[Reply to npm ERR! cb() never called!  _  when trying to install MMM-RTSPStream on Fri, 22 Dec 2017 17:24:35 GMT]]></title><description><![CDATA[<p dir="auto">You may try and update node and npm then retry:</p>
<p dir="auto">Update npm:</p>
<pre><code class="language-shell">npm install -g npm
</code></pre>
<p dir="auto">Update node (should update npm too):</p>
<pre><code class="language-shell">sudo npm cache clean -f
sudo npm install -g n
sudo n stable
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/32634</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/32634</guid><dc:creator><![CDATA[shbatm]]></dc:creator><pubDate>Fri, 22 Dec 2017 17:24:35 GMT</pubDate></item><item><title><![CDATA[Reply to npm ERR! cb() never called!  _  when trying to install MMM-RTSPStream on Fri, 22 Dec 2017 17:02:50 GMT]]></title><description><![CDATA[<p dir="auto">hi,</p>
<p dir="auto">yes, its on a raspberry pi 3.</p>
<pre><code>pi@MagicMirror:~ $ node -v
v6.12.2
pi@MagicMirror:~ $ npm -v
3.10.10
</code></pre>
<p dir="auto">edit:</p>
<p dir="auto">well, first it started to install something. i did it via ssh, so i changed to my browser to surf in the web while the raspberry is installing. When i looked back i just saw this message shown above.</p>
]]></description><link>https://forum.magicmirror.builders/post/32632</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/32632</guid><dc:creator><![CDATA[cruunnerr]]></dc:creator><pubDate>Fri, 22 Dec 2017 17:02:50 GMT</pubDate></item><item><title><![CDATA[Reply to npm ERR! cb() never called!  _  when trying to install MMM-RTSPStream on Fri, 22 Dec 2017 16:45:48 GMT]]></title><description><![CDATA[<p dir="auto">What version of node/npm are you using? And is this on a Raspberry Pi? The commands below will tell you the versions.</p>
<pre><code class="language-shell">node -v
npm -v
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/32631</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/32631</guid><dc:creator><![CDATA[shbatm]]></dc:creator><pubDate>Fri, 22 Dec 2017 16:45:48 GMT</pubDate></item></channel></rss>