Edge-impulse-cli installation issue in ubuntu 18.04

Hi,
I am trying to install edge-impulse-cli on ubuntu 18.04. I have tried and referred various links but edge-impulse-cli is not getting installed.

I am able to detect the arduino nano 33 ble sense dev board and able to flash the code.
But edge-impulse-cli is not getting installed.

May be I am doing something differently, I am not sure.
Need help to fix the issue to complete the edge-impluse-cli installation and functional.

I have already referred below links:
https://www.arduino.cc/pro/software-pro-cli/

====================================
I have also tried below commands, but did not get success.
npm uninstall -g edge-impulse-cli
npm install -g edge-impulse-cli

==========================================
acer@acer-Aspire-4752:~$ node -v
v16.20.2
acer@acer-Aspire-4752:~$ npm -version
8.19.4
acer@acer-Aspire-4752:~$ python3 --version
Python 3.6.9
acer@acer-Aspire-4752:~$ arduino-cli version
arduino-cli Version: 0.35.2 Commit: 01de174c Date: 2024-01-24T11:33:03Z

======================================
acer@acer-Aspire-4752:~$ npm install -g --force edge-impulse-cli
npm WARN using --force Recommended protections disabled.
npm WARN deprecated @zeit/dockerignore@0.0.5: “@zeit/dockerignore” is no longer maintained
npm WARN deprecated figgy-pudding@3.5.2: This module is no longer supported.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request-promise@4.2.4: request-promise has been deprecated because it extends the now deprecated request package, see Request’s Past, Present and Future · Issue #3142 · request/request · GitHub
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See There’s Math.random(), and then there’s Math.random() · V8 for details.
npm WARN deprecated request@2.88.0: request has been deprecated, see Request’s Past, Present and Future · Issue #3142 · request/request · GitHub

added 378 packages, and audited 379 packages in 32s

14 packages are looking for funding
run npm fund for details

17 vulnerabilities (7 moderate, 10 high)

To address issues that do not require attention, run:
npm audit fix

To address all issues (including breaking changes), run:
npm audit fix --force

Run npm audit for details.

=======================================

acer@acer-Aspire-4752:~$ ~/edge_impulse_cli/ei-install-scripts-main/install-linux.sh
[sudo] password for acer:
Hit:1 https://deb.nodesource.com/node_20.x nodistro InRelease
Hit:2 Index of /repos/code/ stable InRelease
Hit:3 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:4 Index of /ubuntu bionic InRelease
Hit:5 Index of /ubuntu bionic-security InRelease
Hit:6 Index of /deadsnakes/ppa/ubuntu bionic InRelease
Hit:7 Index of /ubuntu bionic-updates InRelease
Hit:8 Index of /ubuntu bionic-backports InRelease
Get:9 Kitware APT Repository bionic InRelease [15.6 kB]
Err:9 Kitware APT Repository bionic InRelease
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 1A127079A92F09ED
Fetched 15.6 kB in 3s (5,960 B/s)
Reading package lists… Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Kitware APT Repository bionic InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 1A127079A92F09ED
W: Failed to fetch https://apt.kitware.com/ubuntu/dists/bionic/InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 1A127079A92F09ED
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package python2
npm prefix = /home/acer/.npm-global

========================================
acer@acer-Aspire-4752:~$ sudo apt-get update
[sudo] password for acer:
Hit:1 https://deb.nodesource.com/node_20.x nodistro InRelease
Hit:2 Index of /repos/code/ stable InRelease
Hit:3 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:4 Index of /deadsnakes/ppa/ubuntu bionic InRelease
Hit:5 Index of /ubuntu bionic InRelease
Hit:6 Index of /ubuntu bionic-security InRelease
Hit:7 Index of /ubuntu bionic-updates InRelease
Hit:8 Index of /ubuntu bionic-backports InRelease
Get:9 Kitware APT Repository bionic InRelease [15.6 kB]
Err:9 Kitware APT Repository bionic InRelease
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 1A127079A92F09ED
Fetched 15.6 kB in 3s (5,966 B/s)
Reading package lists… Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Kitware APT Repository bionic InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 1A127079A92F09ED
W: Failed to fetch https://apt.kitware.com/ubuntu/dists/bionic/InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 1A127079A92F09ED
W: Some index files failed to download. They have been ignored, or old ones used instead.

Hi @prithvisingh

First on the CLI:
The command you used to install edge-impulse-cli looks correct. However, considering the issues, you might want to try cleaning the npm cache and then reinstalling:

npm cache clean --force
npm install -g --force edge-impulse-cli

NPM issues:

mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo "export PATH=~/.npm-global/bin:$PATH" >> ~/.profile
source ~/.profile

Can you confirm if this is the REV2?

You can tell which version of the Arduino Nano 33 BLE Sense you have by looking at the underside of the board. The first version will simply have NANO 33 BLE SENSE written in the silkscreen. The second version will have NANO 33 BLE SENSE REV2 .

If this is a REV2 specific problem I will try to loop in one of our team that has one to troubleshoot.

Best

Eoin