Problems Installing Edge Impulse CLI on STM32 Discovery Kit

After I installed node.js and then attempted to install the edge-impulse-cli I got the following error message: (HELP)

C:\Users\laefs>npm -g install edge-impulse-cli
npm ERR! Cannot read property ‘resolve’ of undefined

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\laefs\AppData\Roaming\npm-cache_logs\2020-09-23T04_49_31_605Z-debug.log


This text will be hidden

Hi @laefsky,

There was probably some issue during node installation. Could you share your node and npm version?

node -v
npm -v

I would also suggest to uninstall node and reinstall the LTS version (