Edge-impulse-cli install failed Ubuntu 22

Question/Issue:
We are still failing to install the edge-impulse-cli in our Ubuntu 22 …

base) stanley@stanLG:~$ npm install -g edge-impulse-cli
npm WARN deprecated at-zeit/dockerignore-at-0.0.5: “at-zeit/dockerignore” is no longer maintained
npm WARN deprecated har-validator-at-5.1.5: this library is no longer supported
npm WARN deprecated request-promise-at-4.2.4: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated debug-at-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. (github-visionmedia/debug/issues/797)
npm WARN deprecated debug-at-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. (github=-visionmedia/debug/issues/797)
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. (github-visionmedia/debug/issues/797)
npm WARN deprecated uuid-at-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 v8/blog/math-random for details.
npm WARN deprecated request-at-2.88.0: request has been deprecated, see github/request/request/issues/3142
npm ERR! code 1
npm ERR! path /home/stanley/.npm-global/lib/node_modules/edge-impulse-cli/node_modules/-at-serialport/bindings
npm ERR! command failed

npm ERR! importlib.metadata.PackageNotFoundError: No package metadata was found for gyp
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: gyp failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.onCpExit (/usr/share/nodejs/node-gyp/lib/configure.js:263:16)
npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:314:20)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
npm ERR! gyp ERR! System Linux 5.19.0-41-generic
npm ERR! gyp ERR! command “/usr/bin/node” “/usr/share/nodejs/node-gyp/bin/node-gyp.js” “rebuild”
npm ERR! gyp ERR! cwd /home/stanley/.npm-global/lib/node_modules/edge-impulse-cli/node_modules/@serialport/bindings
npm ERR! gyp ERR! node -v v12.22.9
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok

Please assist

Project ID:

Context/Use case:

Are you following this EI doc?

Basically:

apt     update && apt     upgrade -y    
apt-get update && apt-get upgrade -y
apt-get install -y npm
npm install -g edge-impulse-cli

Think something to do with repositories (again) but after one of the update/upgrade cycle, the install finally worked … thanks mate … we are now starting to mess around a bit :disguised_face:

1 Like