So I am quite a bit rusty using Linux based OS and am encountering an error, or two, trying to install & run the program. Not sure where exactly the issue is steaming from and I followed all the directions to the letter, rebooted a few times, and still nothing.
Downloaded and Installed as root, deleted electronics and tried to repair/re download as suggested and still nothing again.
I think its a permission error, but not sure what exactly to change (or how if that’s the case).
One of my attempts:
root@GenospherePi:/MagicMirror# npm start
> magicmirror@2.12.0 start /MagicMirror
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
sh: 1: ./node_modules/.bin/electron: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! magicmirror@2.12.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the magicmirror@2.12.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! /root/.npm/_logs/2020-08-18T17_33_01_418Z-debug.log
root@GenospherePi:/MagicMirror# cd
root@GenospherePi:~# cd /
root@GenospherePi:/# rm -r MagicMirror
root@GenospherePi:/# git clone https://github.com/MichMich/MagicMirror
Cloning into 'MagicMirror'...
remote: Enumerating objects: 12, done.
remote: Counting objects: 100% (12/12), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 15875 (delta 2), reused 0 (delta 0), pack-reused 15863
Receiving objects: 100% (15875/15875), 15.34 MiB | 1.41 MiB/s, done.
Resolving deltas: 100% (9421/9421), done.
root@GenospherePi:/# cd /MagicMirror
root@GenospherePi:/MagicMirror# npm install
> electron-chromedriver@6.0.0 install /MagicMirror/node_modules/electron-chromedriver
> node ./download-chromedriver.js
/MagicMirror/node_modules/electron-chromedriver/download-chromedriver.js:19
if (err != null) throw err
^
Error: EACCES: permission denied, mkdir '/MagicMirror/node_modules/electron-chromedriver/.electron'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron-chromedriver@6.0.0 install: `node ./download-chromedriver.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron-chromedriver@6.0.0 install 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! /root/.npm/_logs/2020-08-18T17_36_46_469Z-debug.log
root@GenospherePi:/MagicMirror# npm install -g npm
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
/usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
+ npm@6.14.8
added 17 packages from 3 contributors, removed 18 packages and updated 20 packages in 26.194s
root@GenospherePi:/MagicMirror# ^C
root@GenospherePi:/MagicMirror# ^C
EDIT:
Tried
sudo chown -R [root]:[root] /MagicMirror
Nothing
Using a Pi4 with the pre-installed os provided.
Tanks for any help,
Skol