Read the statement by Michael Teeuw here.
./node_modules/.bin/electron js / electron.js Problem
-
@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
[96mUpdating packages …[90m
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.
[96mInstalling helper tools …[90m
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.
[96mCheck current Node installation …[0m
[0mNode currently installed. Checking version number.
[0mMinimum Node version: [1mv10.1.0[0m
[0mInstalled Node version: [1mv10.24.0[0m
[92mNo Node.js upgrade necessary.[0m
[96mCheck current NPM installation …[0m
[0mNPM currently installed. Checking version number.
[0mMinimum npm version: [1mV6.0.0[0m
[0mInstalled npm version: [1mV7.6.0[0m
[92mNo npm upgrade necessary.[0m
[96mCloning MagicMirror …[90m
[92mCloning MagicMirror Done![90m
package.json update for x86 fontface completed ok
[96mInstalling dependencies …[90m
[92mDependencies installation Done![90m
setting up initial config.js
[96mCheck plymouth installation …[0m
[90mSplashscreen: Checking themes directory.[0m
[90mSplashscreen: Create theme directory if not exists.[0m
[92mSplashscreen: Changed theme to MagicMirror successfully.[0m
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 runnpm 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-failureExecStart=/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.targetTarget 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
[92mWe’re ready! Run [1m[97mpm2 start MagicMirror[0m[92m from the ~/MagicMirror directory to start your MagicMirror.[0m
install completed - Tue Mar 2 04:04:51 HST 2021 -
-
@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
runnpm fund
for details5 vulnerabilities (4 low, 1 moderate)
To address all issues (including breaking changes), run:
npm audit fix --forceRun
npm audit
for details.
pi@raspberry:~/MagicMirror $ npm startmagicmirror@2.14.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.jssh: 1: ./node_modules/.bin/electron: not found
pi@raspberry:~/MagicMirror $ -
@youssef wow… not even a complaint…
ok, try this
npm install electron
you’ll get the latest, but it should work…
-
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
runnpm fund
for details5 vulnerabilities (4 low, 1 moderate)
To address all issues (including breaking changes), run:
npm audit fix --forceRun
npm audit
for details.
pi@raspberry:~/MagicMirror $ npm startmagicmirror@2.14.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.jssh: 1: ./node_modules/.bin/electron: not found
![alt text](image url) -
@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…
-
yes i’m using graphical desktop
-
@youssef on my install I see these messages
Official Linux/ia32 support is deprecated. For more info: https://electronjs.org/blog/linux-32bit-support
-
@sdetweil thanks for your support
can i install mm on debian 64 bit ?
-
@youssef should be able to… please wait, I am fixing install and run scripts…
testing now…