Trying to install edge-impulse-cli on Mac OS. Getting npm error

I’m a bit of a node/npm noob. I’m trying to install edge-impulse-cli on Mac OS and I’m getting this:

npm install -g edge-impulse-cli

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142

npm WARN deprecated @zeit/dockerignore@0.0.5: “@zeit/dockerignore” is no longer maintained

npm WARN deprecated har-validator@5.1.5: this library is no longer supported

/usr/local/bin/edge-impulse-uploader -> /usr/local/lib/node_modules/edge-impulse-cli/build/cli/uploader.js

/usr/local/bin/edge-impulse-blocks -> /usr/local/lib/node_modules/edge-impulse-cli/build/cli/blocks.js

/usr/local/bin/edge-impulse-daemon -> /usr/local/lib/node_modules/edge-impulse-cli/build/cli/daemon.js

/usr/local/bin/edge-impulse-data-forwarder -> /usr/local/lib/node_modules/edge-impulse-cli/build/cli/data-forwarder.js

/usr/local/bin/eta-flash-tool -> /usr/local/lib/node_modules/edge-impulse-cli/build/cli/eta-flash-tool/flashtool.js

/usr/local/bin/edge-impulse-run-impulse -> /usr/local/lib/node_modules/edge-impulse-cli/build/cli/run-impulse.js

/usr/local/bin/edge-impulse-framebuffer2jpg -> /usr/local/lib/node_modules/edge-impulse-cli/build/cli/framebuffer-to-jpg.js

/usr/local/bin/himax-flash-tool -> /usr/local/lib/node_modules/edge-impulse-cli/build/cli/himax-flash-tool/flashtool.js

@serialport/bindings@8.0.8 install /usr/local/lib/node_modules/edge-impulse-cli/node_modules/@serialport/bindings

prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

prebuild-install WARN install self signed certificate in certificate chain

gyp WARN install got an error, rolling back install

gyp ERR! configure error

gyp ERR! stack Error: self signed certificate in certificate chain

gyp ERR! stack at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34)

gyp ERR! stack at TLSSocket.emit (events.js:315:20)

gyp ERR! stack at TLSSocket._finishInit (_tls_wrap.js:932:8)

gyp ERR! stack at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12)

gyp ERR! System Darwin 19.6.0

gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”

gyp ERR! cwd /usr/local/lib/node_modules/edge-impulse-cli/node_modules/@serialport/bindings

gyp ERR! node -v v14.16.0

gyp ERR! node-gyp -v v5.1.0

gyp ERR! not ok

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! @serialport/bindings@8.0.8 install: prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the @serialport/bindings@8.0.8 install script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR! /Users/x/.npm/_logs/2021-03-29T20_56_03_529Z-debug.log

I already set strict-ssl in npm to false.

This is in preparation for upcoming class on April 1.

Please help! Thank you!

Hi @tjfoth,

I’m not entirely sure why you run into this issue but can try the following:

npm uninstall -g --force edge-impulse-cli
NODE_TLS_REJECT_UNAUTHORIZED=0 npm install -g edge-impulse-cli

Aurelien

My company’s security is getting in the way. I’ll use one of my own computers.

1 Like