Install PM2 (process manager) for TX2

Hello Everyone.

I am new to TX2 development.

I want to install PM2 a process manager on TX2, since PM2 dependent on node.js, I followed steps which are detailed in https://blog.pm2.io/2018-09-19/Manage-Python-Processes/

$curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

this installation was not successful.

Is there any way-around to get this done.

My ultimate goal is to have a process manager which can restart a python script when it shut-down suddenly and at boot-up

Out-put of “$curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -”
N: Skipping acquire of configured file ‘main/binary-armh/Packages’ as repository ‘http://ports.ubuntu.com/ubuntu-ports xenial InRelease’ doesn’t support architecture ‘armh’
N: Skipping acquire of configured file ‘restricted/binary-armh/Packages’ as repository ‘http://ports.ubuntu.com/ubuntu-ports xenial InRelease’ doesn’t support architecture ‘armh’
N: Skipping acquire of configured file ‘universe/binary-armh/Packages’ as repository ‘http://ports.ubuntu.com/ubuntu-ports xenial InRelease’ doesn’t support architecture ‘armh’
N: Skipping acquire of configured file ‘multiverse/binary-armh/Packages’ as repository ‘http://ports.ubuntu.com/ubuntu-ports xenial InRelease’ doesn’t support architecture ‘armh’
N: Skipping acquire of configured file ‘main/binary-armh/Packages’ as repository ‘http://ports.ubuntu.com/ubuntu-ports xenial-updates InRelease’ doesn’t support architecture ‘armh’
N: Skipping acquire of configured file ‘restricted/binary-armh/Packages’ as repository ‘http://ports.ubuntu.com/ubuntu-ports xenial-updates InRelease’ doesn’t support architecture ‘armh’
N: Skipping acquire of configured file ‘universe/binary-armh/Packages’ as repository ‘http://ports.ubuntu.com/ubuntu-ports xenial-updates InRelease’ doesn’t support architecture ‘armh’
N: Skipping acquire of configured file ‘multiverse/binary-armh/Packages’ as repository ‘http://ports.ubuntu.com/ubuntu-ports xenial-updates InRelease’ doesn’t support architecture ‘armh’
N: Skipping acquire of configured file ‘main/binary-armh/Packages’ as repository ‘http://ports.ubuntu.com/ubuntu-ports xenial-backports InRelease’ doesn’t support architecture ‘armh’
N: Skipping acquire of configured file ‘restricted/binary-armh/Packages’ as repository ‘http://ports.ubuntu.com/ubuntu-ports xenial-backports InRelease’ doesn’t support architecture ‘armh’
N: Skipping acquire of configured file ‘universe/binary-armh/Packages’ as repository ‘http://ports.ubuntu.com/ubuntu-ports xenial-backports InRelease’ doesn’t support architecture ‘armh’
N: Skipping acquire of configured file ‘multiverse/binary-armh/Packages’ as repository ‘http://ports.ubuntu.com/ubuntu-ports xenial-backports InRelease’ doesn’t support architecture ‘armh’
N: Skipping acquire of configured file ‘main/binary-armh/Packages’ as repository ‘http://archive.ubuntu.com/ubuntu bionic InRelease’ doesn’t support architecture ‘armh’
N: Skipping acquire of configured file ‘universe/binary-armh/Packages’ as repository ‘http://archive.ubuntu.com/ubuntu bionic InRelease’ doesn’t support architecture ‘armh’
N: Skipping acquire of configured file ‘main/binary-armh/Packages’ as repository ‘http://archive.ubuntu.com/ubuntu bionic-security InRelease’ doesn’t support architecture ‘armh’
N: Skipping acquire of configured file ‘universe/binary-armh/Packages’ as repository ‘http://archive.ubuntu.com/ubuntu bionic-security InRelease’ doesn’t support architecture ‘armh’
N: Skipping acquire of configured file ‘main/binary-armh/Packages’ as repository ‘http://archive.ubuntu.com/ubuntu bionic-updates InRelease’ doesn’t support architecture ‘armh’
N: Skipping acquire of configured file ‘universe/binary-armh/Packages’ as repository ‘http://archive.ubuntu.com/ubuntu bionic-updates InRelease’ doesn’t support architecture ‘armh’

E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.162 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.162 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.162 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

I’m not sure why it would say “armh”. I am assuming this is a truncated “armhf”, which is incorrect. The TX2 is arm64/aarch64 (64-bit ARMv8-a), whereas armhf is 32-bit (32-bit ARMv7-a with hard float calling convention).

The failed fetches looking for “binary-arm64” are correct architecture, but the previous messages about “armh” are not. Either way it simply means PM2 was never released for 64-bit ARM architecture. You would have to build this yourself from source packages.

Understood.
Thank you for the reply