Error installing client on jetson nano : Error: sharp@0.29.1

When installing the edge impulse client i get error installing client on jetson nano : Error: sharp@0.29.1. How can i overcome this error?

this is the command im running “sudo wget -q -O - https://cdn.edgeimpulse.com/build-system/jetson.sh | bash”

a extract from the log file ( i coudnt figure out a way to upload the whole file):

9109 silly install request-promise@4.2.4
9110 info lifecycle request-promise@4.2.4~install: request-promise@4.2.4
9111 silly install sharp@0.29.1
9112 info lifecycle sharp@0.29.1~install: sharp@0.29.1
9113 verbose lifecycle sharp@0.29.1~install: unsafe-perm in lifecycle true
9114 verbose lifecycle sharp@0.29.1~install: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/local/lib/node_modules/edge-impulse-linux/node_modules/sharp/node_modules/.bin:/usr/local/lib/node_modules/edge-impulse-linux/node_modules/.bin:/usr/local/lib/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
9115 verbose lifecycle sharp@0.29.1~install: CWD: /usr/local/lib/node_modules/edge-impulse-linux/node_modules/sharp
9116 silly lifecycle sharp@0.29.1~install: Args: [
9116 silly lifecycle ‘-c’,
9116 silly lifecycle ‘(node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)’
9116 silly lifecycle ]
9117 silly lifecycle sharp@0.29.1~install: Returned: code: 1 signal: null
9118 info lifecycle sharp@0.29.1~install: Failed to exec install script
9119 timing action:install Completed in 683ms
9120 verbose unlock done using /home/jetbot/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging
9121 timing stage:rollbackFailedOptional Completed in 1545ms
9122 timing stage:runTopLevelLifecycles Completed in 37437ms
9123 warn tsargs@1.4.1 requires a peer of typescript@^3.1.6 but none is installed. You must install peer dependencies yourself.
9124 verbose stack Error: sharp@0.29.1 install: (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
9124 verbose stack Exit status 1
9124 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
9124 verbose stack at EventEmitter.emit (events.js:210:5)
9124 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
9124 verbose stack at ChildProcess.emit (events.js:210:5)
9124 verbose stack at maybeClose (internal/child_process.js:1021:16)
9124 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
9125 verbose pkgid sharp@0.29.1
9126 verbose cwd /home/jetbot/vips-8.10.5
9127 verbose Linux 4.9.253-tegra
9128 verbose argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” “edge-impulse-linux” “-g” “–unsafe-perm=true”
9129 verbose node v12.13.0
9130 verbose npm v6.12.0
9131 error code ELIFECYCLE
9132 error errno 1

Hello @kelter101757,

I will try later today a fresh installation on the Jetson Nano.
I let you know how it goes on my end.

Regards,

Louis

Hello @kelter101757,

I just tried with a fresh installation and I am having the same issue.
I’m investigating…
Another user is having the same issue: Webinar - PERFECTING FACTORY 5.0 WITH EDGE-POWERED AI

Regards,

Louis

@louis @kelter101757 I’m unfortunately without a Jetson Nano, but one quick fix would be to install the previous Linux CLI version:

sudo npm install edge-impulse-linux@1.2.10 

I’ll update the Jetson Nano script for now, while @louis and I are figuring out what’s wrong here.

Hello @kelter101757,

It now should work with the following command:

wget -q -O - https://cdn.edgeimpulse.com/firmware/linux/jetson.sh | bash

We updated the script (and the documentation), just make sure to use this url and not the previous one.

For your understanding, the issue came from an outdate version of vips (previously vips-8.10.5 and now upgraded to vips-8.12.1). Sorry for the troubles. Let me know if you still have issues.

Regards,

Louis

Hi Louis & Jan,
I always got the error message after the installation command, can you please give me a quick clue?
‘vips-8.12.1.tar.gz.13’ saved [17820213/17820213]

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

Best,
Hailiang

And I never succeeded running “edge-impulse-linux” on my jetson nano.