MMM-Screencast icon indicating copy to clipboard operation
MMM-Screencast copied to clipboard

Youtube Discovers Raspberry Pi But Does Not Cast the Video

Open Tech-Smarts opened this issue 5 years ago • 3 comments

Tech-Smarts avatar Jul 07 '19 16:07 Tech-Smarts

Here is the error: npm WARN npm npm does not support Node.js v10.15.2 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9. npm WARN npm You can find the latest version at https://nodejs.org/

[email protected] start /home/pi/MagicMirror sh run-start.sh

Starting MagicMirror: v2.8.0 Loading config ... Loading module helpers ... No helper found for module: alert. Initializing new module helper ... Module helper loaded: updatenotification No helper found for module: clock. Initializing new module helper ... Module helper loaded: calendar No helper found for module: compliments. No helper found for module: currentweather. No helper found for module: weatherforecast. Initializing new module helper ... Module helper loaded: newsfeed Initializing new module helper ... Module helper loaded: MMM-NowPlayingOnSpotify Initializing new module helper ... Module helper loaded: MMM-Screencast All module helpers loaded. Starting server on port 8080 ... Server started ... Connecting socket for: updatenotification Connecting socket for: calendar Starting node helper for: calendar Connecting socket for: newsfeed Starting module: newsfeed Connecting socket for: MMM-NowPlayingOnSpotify Connecting socket for: MMM-Screencast Sockets connected & modules started ... Launching application. Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/kapadia%40gmail.com/private-cc01e8bf71c520fc1773541349965b6d/basic.ics - Interval: 300000 Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000 (node:1494) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. DIAL Server is running on PORT 8569 Refreshed access token because it has expired. Expired at: 11:14:36 now is: 11:14:36 screencast stderr: npm screencast stderr:
screencast stderr: WARN npm npm does not support Node.js v10.15.2

screencast stderr: npm screencast stderr: WARN npm You should probably upgrade to a newer version of node as we npm WARN screencast stderr: npm can't make any promises that npm will work with this version.

screencast stderr: npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9. npm screencast stderr: WARN npm You can find the latest version at https://nodejs.org/

screencast stdout:

[email protected] start /home/pi/MagicMirror/modules/MMM-Screencast electron app.js "http://www.youtube.com/tv?pairingCode=986432A5-8FFA-4FB5-8906-1A6487E71841&rUrl=ws%3A%2F%2F10.0.1.16%3A55299%2F5FCA3AF2-B103-4527-835C-A8A6F2994FAF&rId=C8205FDB-6267-4EA7-8DAB-AEEB4D93089F&theme=cl&dialLaunch=watch" "center" "100" "100"

screencast stderr: /home/pi/MagicMirror/modules/MMM-Screencast/node_modules/electron/dist/electron: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

screencast stderr: npm screencast stderr: ERR! file sh npm ERR! code screencast stderr: ELIFECYCLE npm ERR! errno ENOENT npm ERR! screencast stderr: syscall spawn

screencast stderr: npm screencast stderr: ERR! [email protected] start: electron app.js "http://www.youtube.com/tv?pairingCode=986432A5-8FFA-4FB5-8906-1A6487E71841&rUrl=ws%3A%2F%2F10.0.1.16%3A55299%2F5FCA3AF2-B103-4527-835C-A8A6F2994FAF&rId=C8205FDB-6267-4EA7-8DAB-AEEB4D93089F&theme=cl&dialLaunch=watch" "center" "100" "100" npm ERR! spawn ENOENT npm screencast stderr: ERR! npm ERR! Failed at the [email protected] start script. npm screencast stderr: ERR! This is probably not a problem with npm. There is likely additional logging output above.

screencast stderr:

screencast stderr: npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2019-07-07T16_14_56_455Z-debug.log

closing code: 1 screencast stderr: npm screencast stderr:
screencast stderr: WARN npm npm does not support Node.js v10.15.2

screencast stderr: npm WARN npm You should probably upgrade to a newer version of node as we npm screencast stderr: WARN npm can't make any promises that npm will work with this version. npm screencast stderr: WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9. npm WARN npm You can find the latest version at https://nodejs.org/

screencast stdout:

[email protected] start /home/pi/MagicMirror/modules/MMM-Screencast electron app.js "http://www.youtube.com/tv?pairingCode=34D128FE-A454-44DD-AC97-314D50F3C612&rUrl=ws%3A%2F%2F10.0.1.16%3A55299%2F5FCA3AF2-B103-4527-835C-A8A6F2994FAF&rId=C8205FDB-6267-4EA7-8DAB-AEEB4D93089F&theme=cl&dialLaunch=watch" "center" "100" "100"

screencast stderr: /home/pi/MagicMirror/modules/MMM-Screencast/node_modules/electron/dist/electron: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

screencast stderr: npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! [email protected] start: electron app.js "http://www.youtube.com/tv?pairingCode=34D128FE-A454-44DD-AC97-314D50F3C612&rUrl=ws%3A%2F%2F10.0.1.16%3A55299%2F5FCA3AF2-B103-4527-835C-A8A6F2994FAF&rId=C8205FDB-6267-4EA7-8DAB-AEEB4D93089F&theme=cl&dialLaunch=watch" "center" "100" "100" npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the [email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

screencast stderr: npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2019-07-07T16_15_49_386Z-debug.log

Tech-Smarts avatar Jul 07 '19 16:07 Tech-Smarts

I honestly don't know what to do.

Tech-Smarts avatar Jul 07 '19 16:07 Tech-Smarts

Hey @Tech-Smarts! Sorry about the issue. It looks like you are using an unsupported version of node with the current version of npm. I'd recommend either trying to update npm or install a different version of node with n.

update npm:

npm install -g npm@latest

update node with n:

npm install -g n
n latest

I'd recommend only updating npm first and then going and reinstalling all dependencies in both your MM and MMM-Screencast. Also is this being thrown by not just MMM-Screencast or by you MM in general?

Let me know how it goes!

kevinatown avatar Jul 12 '19 16:07 kevinatown