cncjs/cncjs-pi-raspbian

Can't install on Raspberry Pi Zero W Rev 1.1

alexcagliari87 opened this issue · 4 comments

Hi,
I have the last Raspberry Pi Zero W Rev 1.1.
The steps are:

  1. Using Raspberry Pi Imager v 1.6.2 i choose "Raspberry Pi OS Lite 32 bit"
  2. Inserting Micro SD into Raspi
  3. Login via SSH
  4. Run "sudo apt update"
  5. Run "URL="https://raw.githubusercontent.com/cncjs/cncjs-pi-raspbian/master/cncjs_install.sh" curl -sSL ${URL} | bash"

2022-02-01 13_22_40-pi@laser_ ~

2022-02-01 13_22_59-GitHub - cncjs_cncjs-pi-raspbian_ Raspberry PI distribution of CNCjs in a ready

2022-02-01 13_23_15-pi@laser_ ~

First Error
2022-02-01 13_25_54-cncjs_cncjs-pi-raspbian_ Raspberry PI distribution of CNCjs in a ready to deploy

.. but solved
2022-02-01 13_32_07-pi@laser_ ~

The problem is this:
2022-02-01 13_33_16-pi@laser_ ~

At this point i tried to manually install npm using "sudo apt install npm -y".
Now typing "npm -v" i have "7.5.2" output
After i relaunch cncjs installer running only the cnc js installation with this output:
2022-02-01 15_10_07-pi@laser_ ~

Another Attempt (SOLUTION)

_Following the solutions proposed by comqdhb on this comment (Issue 17) #17 (comment) and by aoturoa on this comment #17 (comment) _

  1. Fresh Install of Raspberry PI OS Lite version (2020-08-20)
mkdir node
cd node
wget https://unofficial-builds.nodejs.org/download/release/v10.24.1/node-v10.24.1-linux-armv6l.tar.xz
tar xvfJ node-v10.24.1-linux-armv6l.tar.xz 
sudo cp  -R node-v10.24.1-linux-armv6l/* /usr/local
cd  ..
rm -rf node
  1. Ran script un-ticking need to install node

Result:
2022-02-01 16_31_09-pi@laser_ ~

System Info

uname -a
	Linux laser 5.10.92+ #1514 Mon Jan 17 17:35:21 GMT 2022 armv6l GNU/Linux
	
cat /etc/*-release
	PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
	NAME="Raspbian GNU/Linux"
	VERSION_ID="11"
	VERSION="11 (bullseye)"
	VERSION_CODENAME=bullseye
	ID=raspbian
	ID_LIKE=debian

Thanks for the detailed info.
Just an FYI, I generally don't recommend running CNCjs on the Pi Zero, because of performance issues, but let's take a look.

Looks like the Pi Zero requires a different node binary. Which you installed manually (good).

Looking at your latest output results it looks like a JavaScript compiler is running out of memory... will have to do some testing... though not sure if will work on Pi Zero.

Might use a Raspberry Pi Zero 2, it uses the same processor architecture as the newer Pis, like the Pi3.

Did anyone ever solve this issue? I'm running into the same problems trying to build a cncjs interface to my TimSav needle cutter.