• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

./node_modules/.bin/electron js / electron.js Problem

Scheduled Pinned Locked Moved Troubleshooting
23 Posts 2 Posters 3.5k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    sdetweil @youssef
    last edited by Mar 2, 2021, 2:11 PM

    @youssef can u post ~/install.log
    or send to my email, sdetweil at gmail

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    Y 1 Reply Last reply Mar 2, 2021, 2:20 PM Reply Quote 0
    • Y Offline
      youssef @sdetweil
      last edited by Mar 2, 2021, 2:20 PM

      @sdetweil thanx for your response

      install starting - Tue Mar 2 04:00:50 HST 2021
      installing on x86_64 processor system
      the os is Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster
      Updating packages …
      Get:1 http://security.debian.org buster/updates InRelease [65.4 kB] Hit:2 http://ftp.debian.org/debian buster InRelease Hit:3 http://archive.raspberrypi.org/debian buster InRelease Get:4 http://packages.microsoft.com/repos/code stable InRelease [10.4 kB] Get:5 http://ftp.debian.org/debian buster-updates InRelease [51.9 kB] Hit:6 https://deb.nodesource.com/node_11.x buster InRelease Get:7 http://packages.microsoft.com/repos/code stable/main arm64 Packages [16.0 kB] Get:8 http://packages.microsoft.com/repos/code stable/main armhf Packages [15.8 kB] Get:9 http://packages.microsoft.com/repos/code stable/main amd64 Packages [15.4 kB] Fetched 175 kB in 2s (72.7 kB/s) Reading package lists…
      apt-get update completed ok
      apt-get upgrade started
      apt upgrade result =rc=0 Reading package lists…
      Building dependency tree…
      Reading state information…
      Calculating upgrade…
      The following packages have been kept back:
      linux-headers-amd64:amd64 linux-image-amd64:amd64
      0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
      Installing helper tools …
      Reading package lists…
      Building dependency tree…
      Reading state information…
      build-essential is already the newest version (12.6).
      curl is already the newest version (7.64.0-4+deb10u1).
      git is already the newest version (1:2.20.1-2+deb10u3).
      unzip is already the newest version (6.0-23+deb10u2).
      wget is already the newest version (1.20.1-1.1).
      wget set to manually installed.
      0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
      Check current Node installation …
      Node currently installed. Checking version number.
      Minimum Node version: v10.1.0
      Installed Node version: v10.24.0
      No Node.js upgrade necessary.
      Check current NPM installation …
      NPM currently installed. Checking version number.
      Minimum npm version: V6.0.0
      Installed npm version: V7.6.0
      No npm upgrade necessary.
      Cloning MagicMirror …
      Cloning MagicMirror Done!
      package.json update for x86 fontface completed ok
      Installing dependencies …
      Dependencies installation Done!
      setting up initial config.js
      Check plymouth installation …
      Splashscreen: Checking themes directory.
      Splashscreen: Create theme directory if not exists.
      Splashscreen: Changed theme to MagicMirror successfully.
      install and setup pm2
      pm2 not installed, installing
      pm2 install result npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) added 201 packages, and audited 202 packages in 19s 9 packages are looking for funding run npm fund for details found 0 vulnerabilities
      get the pm2 platform specific startup command
      startup command = sudo env PATH=$PATH:/usr/bin:/bin /usr/local/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi

                          -------------
      

      /\\\\\\_/\\/\\/\\\\_
      _/\/////////\_/\\\
      /\\\/\///////\_
      /\_
      /\_/\//\_/\//\_/////\_
      _/\\\\\\/
      /\\///\/\/
      /\_
      /\/
      /\/////////
      /\_
      ///\/
      /\_/\//_____
      /\_
      /\_////\_____/\//_____
      /\_/\_/\_/\/__________
      /\_/\_/\_/\\\\\\\_
      _////////////////////////

                            Runtime Edition
      
          PM2 is a Production Process Manager for Node.js applications
                       with a built-in Load Balancer.
      
                  Start and Daemonize any application:
                  $ pm2 start app.js
      
                  Load Balance 4 instances of api.js:
                  $ pm2 start api.js -i 4
      
                  Monitor in production:
                  $ pm2 monitor
      
                  Make pm2 auto-boot at server restart:
                  $ pm2 startup
      
                  To go further checkout:
                  http://pm2.io/
      
      
                          -------------
      

      [PM2] Init System found: systemd
      Platform systemd
      Template
      [Unit]
      Description=PM2 process manager
      Documentation=https://pm2.keymetrics.io/
      After=network.target

      [Service]
      Type=forking
      User=pi
      LimitNOFILE=infinity
      LimitNPROC=infinity
      LimitCORE=infinity
      Environment=PATH=$PATH:/usr/bin:/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
      Environment=PM2_HOME=/home/pi/.pm2
      PIDFile=/home/pi/.pm2/pm2.pid
      Restart=on-failure

      ExecStart=/usr/local/lib/node_modules/pm2/bin/pm2 resurrect
      ExecReload=/usr/local/lib/node_modules/pm2/bin/pm2 reload all
      ExecStop=/usr/local/lib/node_modules/pm2/bin/pm2 kill

      [Install]
      WantedBy=multi-user.target

      Target path
      /etc/systemd/system/pm2-pi.service
      Command list
      [ ‘systemctl enable pm2-pi’ ]
      [PM2] Writing init configuration in /etc/systemd/system/pm2-pi.service
      [PM2] Making script booting at startup…

      Executing: systemctl enable pm2-pi…

      [PM2] [v] Command successfully executed.
      ±--------------------------------------+
      [PM2] Freeze a process list on reboot via:
      $ pm2 save

      [PM2] Remove init script via:
      $ pm2 unstartup systemd
      pm2 startup command done
      configure the pm2 config file for MagicMirror
      start MagicMirror via pm2 now
      save MagicMirror pm2 config now
      stop MagicMirror via pm2 now
      disable screensaver via gsettings was true and uint32 300
      disable screensaver via lightdm.conf
      disable screensaver via lxsession
      We’re ready! Run pm2 start MagicMirror from the ~/MagicMirror directory to start your MagicMirror.
      install completed - Tue Mar 2 04:04:51 HST 2021

      S 1 Reply Last reply Mar 2, 2021, 2:26 PM Reply Quote 0
      • S Offline
        sdetweil @youssef
        last edited by Mar 2, 2021, 2:26 PM

        @youssef weird…

        can you do and show output of

        cd ~/MagicMirror
        npm install electron@8.5.3
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        Y 1 Reply Last reply Mar 2, 2021, 2:32 PM Reply Quote 0
        • Y Offline
          youssef @sdetweil
          last edited by Mar 2, 2021, 2:32 PM

          @sdetweil said in ./node_modules/.bin/electron js / electron.js Problem:

          npm install electron@8.5.3

          Below you find the result

          pi@raspberry:~/MagicMirror $ npm install electron@8.5.3
          npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
          npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
          npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
          npm WARN deprecated @babel/polyfill@7.12.1: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
          npm WARN deprecated gitlab@10.2.1: The gitlab package has found a new home in the @gitbeaker organization. For the latest gitlab node library, check out @gitbeaker/node. A full list of the features can be found here: https://github.com/jdalrymple/gitbeaker#readme
          npm WARN deprecated webdriverio@4.14.4: outdated version, please use @next
          npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

          added 813 packages, and audited 1112 packages in 20s

          88 packages are looking for funding
          run npm fund for details

          5 vulnerabilities (4 low, 1 moderate)

          To address all issues (including breaking changes), run:
          npm audit fix --force

          Run npm audit for details.
          pi@raspberry:~/MagicMirror $ npm start

          magicmirror@2.14.0 start
          DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

          sh: 1: ./node_modules/.bin/electron: not found
          pi@raspberry:~/MagicMirror $

          S 1 Reply Last reply Mar 2, 2021, 2:37 PM Reply Quote 0
          • S Offline
            sdetweil @youssef
            last edited by Mar 2, 2021, 2:37 PM

            @youssef wow… not even a complaint…

            ok, try this

            npm install electron

            you’ll get the latest, but it should work…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            Y 1 Reply Last reply Mar 2, 2021, 2:44 PM Reply Quote 0
            • Y Offline
              youssef @sdetweil
              last edited by Mar 2, 2021, 2:44 PM

              @sdetweil

              they give the same result ,

              pi@raspberry:~/MagicMirror $ npm install electron

              up to date, audited 1112 packages in 6s

              88 packages are looking for funding
              run npm fund for details

              5 vulnerabilities (4 low, 1 moderate)

              To address all issues (including breaking changes), run:
              npm audit fix --force

              Run npm audit for details.
              pi@raspberry:~/MagicMirror $ npm start

              magicmirror@2.14.0 start
              DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

              sh: 1: ./node_modules/.bin/electron: not found
              ![alt text](image url)

              S 1 Reply Last reply Mar 2, 2021, 2:47 PM Reply Quote 0
              • S Offline
                sdetweil @youssef
                last edited by Mar 2, 2021, 2:47 PM

                @youssef hm… you are running the graphical desktop, right? you must for electron to run

                if u are running cli mode, then no graphics…

                only asking cause its not complaining and failing to install…

                i will recheck on my system as soon as I can … got a big copy going on and am short of disk space at the moment…

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • Y Offline
                  youssef
                  last edited by Mar 2, 2021, 2:50 PM

                  @sdetweil

                  yes i’m using graphical desktop

                  S 1 Reply Last reply Mar 2, 2021, 3:16 PM Reply Quote 0
                  • S Offline
                    sdetweil @youssef
                    last edited by Mar 2, 2021, 3:16 PM

                    @youssef on my install I see these messages

                    Official Linux/ia32 support is deprecated.
                    For more info: https://electronjs.org/blog/linux-32bit-support
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    Y 1 Reply Last reply Mar 2, 2021, 4:18 PM Reply Quote 0
                    • Y Offline
                      youssef @sdetweil
                      last edited by Mar 2, 2021, 4:18 PM

                      @sdetweil thanks for your support

                      can i install mm on debian 64 bit ?

                      S 1 Reply Last reply Mar 2, 2021, 4:18 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        13/23
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy