Issues with installing edge-impulse-cli on MacOS Big Sur (11.2)

I can not get edge-impulse-cli installed on macOS Big Sur (11.2)
here is my terminal output, the installation just hangs on the last line:

% sudo npm install -g edge-impulse-cli
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
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 request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
⸨ ⸩ ⠙ reify:rxjs: timing reifyNode:node_modules/edge-impulse-cli Completed in 2405ms

@gpolder, on macOS I’d recommend not using sudo. Can you give it another try without that?

I need sudo, as I don’t have write access to /usr/local/lib/node_modules/

  $ npm install -g edge-impulse-cli

    npm notice

    npm notice New minor version of npm available! 7.5.3 -> 7.6.0

    npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.6.0

    npm notice Run npm install -g npm@7.6.0 to update!

    npm notice

    npm ERR! code EACCES

    npm ERR! syscall mkdir

    npm ERR! path /usr/local/lib/node_modules/edge-impulse-cli

    npm ERR! errno -13

    npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/edge-impulse-cli'

    npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/edge-impulse-cli'] {

    npm ERR! errno: -13,

    npm ERR! code: 'EACCES',

    npm ERR! syscall: 'mkdir',

    npm ERR! path: '/usr/local/lib/node_modules/edge-impulse-cli'

    npm ERR! }

    npm ERR!

Hi @gpolder,

You can change the owner of the node_modules directory as mentioned in the documentation:

sudo chown -R $USER /usr/local/lib/node_modules

Let us know if that helps,

Aurelien

thanks for the quick response.
deprecated warnings still remain, but otherwise the installation was successful.
Thanks for helping out.

1 Like