Pm2 command throws illegal instruction error on raspberry pi

Hello BigClown community.

I am new to your products. I am setting up a Rasp Zero.pm2 command is giving an error. Could you please suggest what could be the problem

pi@hub:~ $ pm2
Illegal instruction
pi@hub:~ $ pm2 show bcg

pi@hub:~ $ uname -a
Linux hub 4.14.34+ #1110 Mon Apr 16 14:51:42 BST 2018 armv6l GNU/Linux

‘bcf list’ command works though

Hi, could be related that you use bc-raspbian on untested Rpi Zero. Rpi Zero has lower ARM architecture ARMv6, Rpi3 has ARMv8. So some instructions which is using PM2 are not supported. If you reinstall pm2 it could install the right binary versions and msot probably work.

This for your response Martin.
When I used Raspi3 instead of RaspiZero, these problems were solved.

wget “https://nodejs.org/download/release/v8.14.0/node-v8.14.0-linux-armv6l.tar.gz

tar -xvzf node-v8.14.0-linux-armv6l.tar.gz

cd node-v8.14.0-linux-armv6l

sudo cp -R * /usr/local/

sudo rm /usr/bin/nodejs

pm2 resurrect