A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
  • Strange Icon behavior MMM-weatherforecast

    Unsolved
    3
    0 Votes
    3 Posts
    2k Views
    eniacE
    No I installed ist without changing anything … Config : { module: "MMM-weatherforecast", position: "top_left", config: { location: "", locationID: "2832521", units: "metric", maxNumberOfDays: "7", updateInterval: "36000000", //showRainAmount: "true", tableClass: "xsmall", colored: "true", iconTable: { "01d": "wi-day-sunny", "02d": "wi-day-cloudy", "03d": "wi-cloudy", "04d": "wi-cloudy-windy", "09d": "wi-showers", "10d": "wi-rain", "11d": "wi-thunderstorm", "13d": "wi-snow", "50d": "wi-fog", "01n": "wi-night", "02n": "wi-night-cloudy", "03n": "wi-night-cloudy", "04n": "wi-night-cloudy", "09n": "wi-night-showers", "10n": "wi-night-rain", "11n": "wi-night-thunderstorm", "13n": "wi-night-snow", "50n": "wi-night-alt-cloudy-windy" }, roundTemp: "true", appid: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } }, [image: 1541929714630-wf2.jpg] Thats the look if the Wonderground Module is removed out of the config. [image: 1541929770855-wf.jpg] If WG is active it looks like this …
  • MagicMirror not showing, even though pm2 says it's online

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    justjim1220J
    @jrinco11 try npm rebuild
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
  • Black screen after AssistantMk2 install.

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    M
    @sdetweil Thanks, but it turns out my upgrade to Stretch didn’t take very well and I couldn’t update either. I flashed a fresh stretch and I’ll try the updated AssistantMk2.
  • Followed wiki, but the screen does not rotate

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    cirdanC
    Its about using the hdmi output of the pi. And it looks you’re doing that. But you can try hooking up the pi to another monitor, e.g. a tv to rule it out?
  • Modifying Google newsfeed url..

    Unsolved
    1
    0 Votes
    1 Posts
    845 Views
    S
    Hello! So i have this link bellow so i can get the latest news appeard in the magic mirror. But i dont know how to modify it so i can get the latest news on this subject/section. Note: this is a news link from google news(with the section i like). But they appeard in wrong days. Should i change something in the url or in the newsfeed module? https://news.google.com/news/rss/search/section/q/Επιστήμη+και+τεχνολογία?ned=el_gr&gl=GR&hl=el
  • Syntax Errorn in Config.js

    Unsolved
    11
    0 Votes
    11 Posts
    5k Views
    lavolp3L
    @cyrus1337 If you’re really into the magicmirror stuff, it might be worth the time to do a little javascript training. There are courses all around the net, I’m currently doing some courses that have been offered for free on udemy. https://www.udemy.com/javascriptfundamentals/ It may help a lot with not too much effort.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
  • [Solved] Standard calendar displays the time incorrectly

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    K
    Yes, that´s it. Thank your for this great tip.
  • 0 Votes
    1 Posts
    537 Views
    M
    Hello all! Just finished my build yesterday, and I noticed that after long sleep cycles, the monitor turns on with detected movement (PIR sensor), but MagicMirror itself is just a black screen with my mouse cursor. I am also not able to close MagicMirror by pushing alt. I have to restart the pi to get MagicMirror to load properly after the long sleep. Has anyone had a problem like this? Is there a setting to not have the MagicMirror program sleep?
  • Sending notifications from python to MM

    Solved
    8
    0 Votes
    8 Posts
    4k Views
    C
    Thanks @bream !
  • PM2 keeps failing throughout the day.

    1
    0 Votes
    1 Posts
    628 Views
    M
    Here’s the PM2 log. If you need anything else please let me know. I am very much an amateur hobbyist and appreciate any help the community can give. [TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option) /home/pi/.pm2/logs/mm-error.log last 15 lines: 0|mm | [5692:1029/074712.391276:FATAL:bus.cc(1152)] D-Bus connection was d isconnected. Aborting. 0|mm | [1420:1029/084634.621771:FATAL:memory.cc(22)] Out of memory. size=1 68710144 0|mm | [5204:1029/192609.616263:FATAL:memory.cc(22)] Out of memory. size=1 68390656 0|mm | [5786:1029/205730.197199:FATAL:memory.cc(22)] Out of memory. size=1 68390656 0|mm | [10336:1030/123847.381365:FATAL:memory.cc(22)] Out of memory. size= 82673664 0|mm | [14524:1030/193135.199433:FATAL:memory.cc(22)] Out of memory. size= 168710144 0|mm | [15002:1030/203155.584255:FATAL:memory.cc(22)] Out of memory. size= 168710144 0|mm | [15801:1031/004231.466488:FATAL:memory.cc(22)] Out of memory. size= 168710144 0|mm | [22888:1031/182320.640073:FATAL:memory.cc(22)] Out of memory. size= 120422400 0|mm | [23729:1102/231539.117803:FATAL:memory.cc(22)] Out of memory. size= 145084416 0|mm | [13342:1103/081157.062213:FATAL:memory.cc(22)] Out of memory. size= 145084416 0|mm | [13880:1103/092611.731661:FATAL:memory.cc(22)] Out of memory. size= 145084416 0|mm | [14574:1103/101944.380162:FATAL:memory.cc(22)] Out of memory. size= 145084416 0|mm | [14956:1103/112718.990769:FATAL:memory.cc(22)] Out of memory. size= 145084416 0|mm | [15635:1103/124555.329821:FATAL:memory.cc(22)] Out of memory. size= 145084416 /home/pi/.pm2/logs/mm-out.log last 15 lines: 0|mm | Create new news fetcher for url: http://blog.mlive.com/sports_impac t/atom.xml - Interval: 300000 0|mm | Create new news fetcher for url: http://feeds.denverpost.com/dp-new s-topstories - Interval: 300000 0|mm | Create new news fetcher for url: http://feeds.denverpost.com/dp-spo rts-snow_sports - Interval: 300000 0|mm | Create new news fetcher for url: https://sports.yahoo.com/top/rss.x ml - Interval: 300000 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:01 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:08 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:12 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:20 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:35 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:36 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:46 ** ERROR ** Couldn’t retrieve dat a for provider SNET: null 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:47 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:48 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:56 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input 0|mm | [MMM-MyScoreboard] 3-Nov-18 12:59 ** ERROR ** Couldn’t parse data f or provider SNET: Error: ENOVALIDJSON, Unexpected end of JSON input
  • Black screen after starting

    Unsolved
    13
    0 Votes
    13 Posts
    12k Views
    CyruS1337C
    Ok thank you. Then I will use 0.0.0.0 Thanks again for your help !!! That’s really great
  • Magic Mirror keeps coming back on

    1
    0 Votes
    1 Posts
    426 Views
    S
    Hi, I am using MMM-Remote Control to control my MM from my phone. Works awesome. Only thing is each time I send the command “Turn off mirror” it does that for about 20 minutes then it comes back on on its own. How can I turn it off for a longer period of time, say like at night?
  • 0 Votes
    2 Posts
    1k Views
    evroomE
    Btw, a simple restart of MagicMirror solved the issue and my MM is working again. Web search tells me that: gnutls_handshake(): This function performs the handshake of the TLS/SSL protocol, and initializes the TLS session parameters. Looks to be related with git, as all calls were done to github.com.
  • Outdated npm packages occur several vulnerabilities

    Unsolved
    1
    0 Votes
    1 Posts
    3k Views
    A
    Hello, a lot of packages are outdated and there are several vulnerabilities which I get after the installation. I am not getting run the magic mirror. Any suggestions? pi@raspberrypi:~/MagicMirror $ node -v v10.13.0 pi@raspberrypi:~/MagicMirror $ npm -v 6.4.1 Output after installation on RaspBerry Pi 3, Raspbian Jessie Lite: added 945 packages from 964 contributors and audited 2510 packages in 493.451s found 79 vulnerabilities (31 low, 32 moderate, 15 high, 1 critical) run `npm audit fix` to fix them, or `npm audit` for details Outdated packages: pi@raspberrypi:~/MagicMirror $ npm outdated Package Current Wanted Latest Location body-parser 1.18.2 1.18.3 1.18.3 magicmirror chai 4.1.2 4.2.0 4.2.0 magicmirror colors 1.1.2 1.3.2 1.3.2 magicmirror danger 3.1.3 3.9.0 6.0.2 magicmirror electron 2.0.0 2.0.13 3.0.7 magicmirror express 4.16.2 4.16.4 4.16.4 magicmirror grunt-markdownlint 1.0.43 1.1.6 2.1.0 magicmirror helmet 3.9.0 3.14.0 3.14.0 magicmirror jsdom 11.6.2 11.12.0 13.0.0 magicmirror jshint 2.9.5 2.9.6 2.9.6 magicmirror mocha 4.1.0 4.1.0 5.2.0 magicmirror mocha-logger 1.0.5 1.0.6 1.0.6 magicmirror request 2.83.0 2.88.0 2.88.0 magicmirror rrule-alt 2.2.7 2.2.8 2.2.8 magicmirror simple-git 1.85.0 1.106.0 1.106.0 magicmirror socket.io 2.0.4 2.1.1 2.1.1 magicmirror spectron 3.7.2 3.7.3 5.0.0 magicmirror stylelint 8.4.0 8.4.0 9.7.1 magicmirror npm audit fix: > phantomjs-prebuilt@2.1.16 install /home/pi/MagicMirror/node_modules/phantomjs-prebuilt > node install.js PhantomJS not found on PATH Unexpected platform or architecture: linux/arm It seems there is no binary available for your platform/architecture Try to install PhantomJS globally npm WARN acorn-jsx@5.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN grunt-stylelint@0.10.1 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: phantomjs-prebuilt@2.1.16 (node_modules/phantomjs-prebuilt): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: phantomjs-prebuilt@2.1.16 install: `node install.js` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 + socket.io@2.1.1 + jshint@2.9.6 + request@2.88.0 + mocha-logger@1.0.6 added 30 packages from 33 contributors, removed 32 packages, updated 37 packages and moved 1 package in 65.581s fixed 37 of 79 vulnerabilities in 2510 scanned packages 1 vulnerability required manual review and could not be updated 3 package updates for 41 vulns involved breaking changes (use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually) after npm update list of outdated packages: Package Current Wanted Latest Location danger 3.9.0 3.9.0 6.0.2 magicmirror electron 2.0.13 2.0.13 3.0.7 magicmirror grunt-markdownlint 1.1.6 1.1.6 2.1.0 magicmirror jsdom 11.12.0 11.12.0 13.0.0 magicmirror mocha 4.1.0 4.1.0 5.2.0 magicmirror spectron 3.7.3 3.8.0 5.0.0 magicmirror stylelint 8.4.0 8.4.0 9.7.1 magicmirror After all updates and upgrades the list of npm audit: pi@raspberrypi:~/MagicMirror $ npm audit === npm audit security report === # Run npm install spectron@5.0.0 to resolve 3 vulnerabilities SEMVER WARNING: Recommended action is a potentially breaking change ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ High │ Regular Expression Denial of Service │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ spectron │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ spectron > electron-chromedriver > electron-download > │ │ │ nugget > request > http-signature > sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/606 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ High │ Regular Expression Denial of Service │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ spectron │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ spectron > request > http-signature > sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/606 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ High │ Regular Expression Denial of Service │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ spectron │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ spectron > webdriverio > request > http-signature > sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/606 │ └───────────────┴──────────────────────────────────────────────────────────────┘ # Run npm install --save-dev stylelint@9.7.1 to resolve 4 vulnerabilities SEMVER WARNING: Recommended action is a potentially breaking change ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ Low │ Prototype Pollution │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ lodash │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ stylelint [dev] │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ stylelint > lodash │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/577 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ Low │ Prototype Pollution │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ lodash │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ stylelint [dev] │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ stylelint > postcss-reporter > lodash │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/577 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ Low │ Prototype Pollution │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ lodash │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ stylelint [dev] │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ stylelint > table > lodash │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/577 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ Low │ Cryptographically Weak PRNG │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ randomatic │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ stylelint [dev] │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ stylelint > micromatch > braces > expand-range > fill-range │ │ │ > randomatic │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/157 │ └───────────────┴──────────────────────────────────────────────────────────────┘ # Run npm update sshpk --depth 6 to resolve 5 vulnerabilities ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ High │ Regular Expression Denial of Service │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ electron │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ electron > electron-download > nugget > request > │ │ │ http-signature > sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/606 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ High │ Regular Expression Denial of Service │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ request │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ request > http-signature > sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/606 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ High │ Regular Expression Denial of Service │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ jsdom │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ jsdom > request > http-signature > sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/606 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ High │ Regular Expression Denial of Service │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ jshint │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ jshint > phantom > phantomjs-prebuilt > request > │ │ │ http-signature > sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/606 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ High │ Regular Expression Denial of Service │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ jshint │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ jshint > phantomjs-prebuilt > request > http-signature > │ │ │ sshpk │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/606 │ └───────────────┴──────────────────────────────────────────────────────────────┘ ┌──────────────────────────────────────────────────────────────────────────────┐ │ Manual Review │ │ Some vulnerabilities require your attention to resolve │ │ │ │ Visit https://go.npm.me/audit-guide for additional guidance │ └──────────────────────────────────────────────────────────────────────────────┘ ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ Low │ Prototype Pollution │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ lodash │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Patched in │ >=4.17.5 │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ express-ipfilter │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ express-ipfilter > lodash │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/577 │ One of the suggestions is occurs this: pi@raspberrypi:~/MagicMirror $ npm install --save-dev stylelint@9.7.1 npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/sshpk npm WARN acorn-jsx@5.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself. npm ERR! path /home/pi/MagicMirror/node_modules/sshpk npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/home/pi/MagicMirror/node_modules/sshpk' npm ERR! { [Error: EACCES: permission denied, access '/home/pi/MagicMirror/node_modules/sshpk'] npm ERR! stack: npm ERR! 'Error: EACCES: permission denied, access \'/home/pi/MagicMirror/node_modules/sshpk\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/home/pi/MagicMirror/node_modules/sshpk' } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator (though this is not recommended). npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2018-11-01T21_58_27_349Z-debug.log Some of the packages need sudo to get updated successfully o_O Alter all : sudo npm install --save-dev spectron@5.0.0 mocha@5.2.0 jsdom@13.0.0 grunt-markdownlint@2.1.0 electron@3.0.7 danger@6.0.2 output: pi@raspberrypi:~/MagicMirror $ npm outdated Package Current Wanted Latest Location electron MISSING 3.0.7 3.0.7 magicmirror so I tried to install electron again: pi@raspberrypi:~/MagicMirror $ npm install electron@latest -g npm WARN checkPermissions Missing write access to /usr/lib/node_modules npm ERR! path /usr/lib/node_modules npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/usr/lib/node_modules' npm ERR! { [Error: EACCES: permission denied, access '/usr/lib/node_modules'] npm ERR! stack: npm ERR! 'Error: EACCES: permission denied, access \'/usr/lib/node_modules\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/lib/node_modules' } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator (though this is not recommended). npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2018-11-01T22_32_58_797Z-debug.log seems to be a bad idea to install electron as sudo. npm install electron@latest After all the installation and upgrades as you can see the audit: pi@raspberrypi:~/MagicMirror $ npm outdated pi@raspberrypi:~/MagicMirror $ npm audit npm ERR! code ELOCKVERIFY npm ERR! Errors were found in your package-lock.json, run npm install to fix them. npm ERR! Missing: danger@^6.0.2 npm ERR! Missing: grunt-markdownlint@^2.1.0 npm ERR! Missing: jsdom@^13.0.0 npm ERR! Missing: mocha@^5.2.0 npm ERR! Missing: spectron@^5.0.0 now i tried to start: pi@raspberrypi:~/MagicMirror $ DISPLAY=:0 nohup npm start & [1] 3939 pi@raspberrypi:~/MagicMirror $ nohup: ignoring input and appending output to 'nohup.out' content of the file nohup.out: > magicmirror@2.5.0 start /home/pi/MagicMirror > sh run-start.sh /home/pi/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! magicmirror@2.5.0 start: `sh run-start.sh` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the magicmirror@2.5.0 start 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/2018-11-01T22_49_36_884Z-debug.log log file 2018-11-01T22_49_36_884Z-debug.log 0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ] 2 info using npm@6.4.1 3 info using node@v10.13.0 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle magicmirror@2.5.0~prestart: magicmirror@2.5.0 6 info lifecycle magicmirror@2.5.0~start: magicmirror@2.5.0 7 verbose lifecycle magicmirror@2.5.0~start: unsafe-perm in lifecycle true 8 verbose lifecycle magicmirror@2.5.0~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games 9 verbose lifecycle magicmirror@2.5.0~start: CWD: /home/pi/MagicMirror 10 silly lifecycle magicmirror@2.5.0~start: Args: [ '-c', 'sh run-start.sh' ] 11 info lifecycle magicmirror@2.5.0~start: Failed to exec start script 12 verbose stack Error: magicmirror@2.5.0 start: `sh run-start.sh` 12 verbose stack spawn ENOENT 12 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18) 12 verbose stack at ChildProcess.emit (events.js:182:13) 12 verbose stack at maybeClose (internal/child_process.js:962:16) 12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5) 13 verbose pkgid magicmirror@2.5.0 14 verbose cwd /home/pi/MagicMirror 15 verbose Linux 4.14.71-v7+ 16 verbose argv "/usr/bin/node" "/usr/bin/npm" "start" 17 verbose node v10.13.0 18 verbose npm v6.4.1 19 error file sh 20 error code ELIFECYCLE 21 error errno ENOENT 22 error syscall spawn 23 error magicmirror@2.5.0 start: `sh run-start.sh` 23 error spawn ENOENT 24 error Failed at the magicmirror@2.5.0 start script. 24 error This is probably not a problem with npm. There is likely additional logging output above. 25 verbose exit [ 1, true ] There are no Permission errors. sudo chown -R $(whoami) ~/../../usr/lib/node_modules/ sudo chown -R $(whoami) ~/.npm/ Any suggestions? I had to install the desktop environment to get it work. Best way is to follow the constructions here: https://github.com/MichMich/MagicMirror/wiki/Jessie-Lite-Installation-Guide Thanks to @lavolp3 https://forum.magicmirror.builders/post/46231 After the installation of desktop enviroenment I could run the magic mirror without errors. “Launched application.” But nothing could be seen. I removed all began a fresh installation but ended with the same problems and new issiues. I think this project is out of the date and needs a lot of time and work to get worked.
  • error: inflate: data stream error (invalid code lengths set)

    Unsolved
    1
    0 Votes
    1 Posts
    1k Views
    G
    Try to make an update to my MM with “git pull && npm install” in the MagicMirror Directory and get these Error: error: inflate: data stream error (invalid code lengths set) fatal: loose object d0ecde3277023772ee3a1864f9a113a1c215cc8a (stored in .git/objects/d0/ecde3277023772ee3a1864f9a113a1c215cc8a) is corrupt fatal: The remote end hung up unexpectedly How can i resolve this? I´m not so firm with the command line so i dont know what tod do! Thanks for your Help
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    26 Views
  • package-lock.json How to commit?

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    lavolp3L
    Same issue, haven’t seen that before. Anyone an idea?