Awesome and thanks, everything working as advertised at the moment. About to attempt my first module install and config. Question, is there a text editor installed with your script? I was trying to figure out how to get VScode installed and where to install it, then realized there may be one on here already. What do you suggest, I have zero coding experience but I understand the concept and know a little from studying Cybersecurity.
Read the statement by Michael Teeuw here.
Posts
-
RE: "npm run start" does not work. Returns "sh 1 ./node_modules/.bin/electron not found"
-
RE: "npm run start" does not work. Returns "sh 1 ./node_modules/.bin/electron not found"
I appreciate all the hard work and assistance. So I believe it is working now. So I rebooted the Raspi and when it came up it showed there were updates. I allowed those updates to install. I then went into terminal and sudo update/sudo upgrade. After that, your script worked as advertised.
Now I did not get through it all until this morning and have not been able to launch it again. I do know the pm2 works because it kept restarting MM every few seconds when I was trying to shut down the Raspi. I will mess with it tonight after i figure out how to disable the autostart. I believe it was “pm2 stop mm” or “pm2 stop MagicMirror”.
-
RE: "npm run start" does not work. Returns "sh 1 ./node_modules/.bin/electron not found"
@sdetweil I am using the Raspberry pi OS 64 (recommended) on a Raspberry pi 4 model B. Using a micro SD and Raspberry pi imager to flash the SD card.
-
RE: "npm run start" does not work. Returns "sh 1 ./node_modules/.bin/electron not found"
@sdetweil Well thats disheartening, lol. I am rebooting, will sudo apt-get update and upgrade again. Then I will try your script again to see if I get anything different.
-
RE: "npm run start" does not work. Returns "sh 1 ./node_modules/.bin/electron not found"
@sdetweil, Ok, so this is what I get when I ran your script as suggested…
install log being saved to /home/Hastyhome/install.log
Updating packages …
W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.IzBHn1 - IsAccessibleBySandboxUser (74: Bad message)
W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.s8By5q - IsAccessibleBySandboxUser (74: Bad message)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_InRelease - PrepareFiles (74: Bad message)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian-security_dists_bookworm-security_InRelease - PrepareFiles (74: Bad message)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian-security_dists_bookworm-security_Release - PrepareFiles (74: Bad message)
E: The repository ‘http://deb.debian.org/debian-security bookworm-security Release’ no longer has a Release file.
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_binary-arm64_Packages.xz - PrepareFiles (74: Bad message)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_binary-armhf_Packages.xz - PrepareFiles (74: Bad message)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_binary-arm64_Packages.xz - PrepareFiles (74: Bad message)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_binary-armhf_Packages.xz - PrepareFiles (74: Bad message)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_binary-arm64_Packages - PrepareFiles (74: Bad message)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_binary-arm64_Packages - PrepareFiles (74: Bad message)
Update failed, retrying installation …
Installing helper tools …
W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.Kd9RjG - IsAccessibleBySandboxUser (74: Bad message)
W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.Ipb98I - IsAccessibleBySandboxUser (74: Bad message)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm_InRelease - PrepareFiles (74: Bad message)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian-security_dists_bookworm-security_InRelease - PrepareFiles (74: Bad message)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian-security_dists_bookworm-security_Release - PrepareFiles (74: Bad message)
E: The repository ‘http://deb.debian.org/debian-security bookworm-security Release’ no longer has a Release file.
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_binary-armhf_Packages.xz - PrepareFiles (74: Bad message)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_binary-arm64_Packages.xz - PrepareFiles (74: Bad message)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_binary-armhf_Packages.xz - PrepareFiles (74: Bad message)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_binary-arm64_Packages.xz - PrepareFiles (74: Bad message)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_binary-arm64_Packages - PrepareFiles (74: Bad message)
W: Problem unlinking the file /var/lib/apt/lists/partial/deb.debian.org_debian_dists_bookworm-updates_main_binary-arm64_Packages - PrepareFiles (74: Bad message) -
RE: "npm run start" does not work. Returns "sh 1 ./node_modules/.bin/electron not found"
Awesome, I will update once I have an opportunity to try this. Thank you.
-
RE: "npm run start" does not work. Returns "sh 1 ./node_modules/.bin/electron not found"
@sdetweil First, thanks for such a speedy response, I will attempt your script when I get home. I did see it as the alternative but wanted to try the supposedly straight forward step by step. So I will start over with a new SD card flash and follow your script, at which point will I need to use the manual method you referenced above?
-
"npm run start" does not work. Returns "sh 1 ./node_modules/.bin/electron not found"
“sh 1 ./node_modules/.bin/electron not found”
This is what I get when I attempt “npm run start” on my Pi3 b with Raspi OS and following the instructions from the documentation.
Initially had issues with the npm and node.js versions. I had to start from scratch with the SD card and update/upgrade then some “global” installation to get lates version of node.js.
Now this is and issue and I did global install electron but it was after the magicmirror install script…Do I need to install electron before the magicmirror install script? I was under the impression electron was installed as a part of that process.