Problems installing edge-impulse-client on w10 and w11 machine

I’m having problems installing the client on w10 and w 10 machine .
Node js is installed and also all the additional tool.
when I run the comand “npm install -g edge-impulse-cli – force” after a while I’ve a very long error log .
I past just the last few lines of log where are highlighted some errors .

Any help is really appreciated.
tks Roberto.

1124 error gyp info it worked if it ends with ok
1124 error gyp info using node-gyp@10.1.0
1124 error gyp info using node@22.1.0 | win32 | x64
1124 error gyp info find Python using Python version 3.12.3 found at “C:\Python312\python.exe”
1124 error gyp info find VS using VS2019 (16.11.34729.46) found at:
1124 error gyp info find VS “C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools”
1124 error gyp info find VS run with --verbose for detailed information
1124 error gyp info spawn C:\Python312\python.exe
1124 error gyp info spawn args [
1124 error gyp info spawn args ‘C:\Users\speed\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py’,
1124 error gyp info spawn args ‘binding.gyp’,
1124 error gyp info spawn args ‘-f’,
1124 error gyp info spawn args ‘msvs’,
1124 error gyp info spawn args ‘-I’,
1124 error gyp info spawn args ‘C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\@serialport\bindings\build\config.gypi’,
1124 error gyp info spawn args ‘-I’,
1124 error gyp info spawn args ‘C:\Users\speed\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\addon.gypi’,
1124 error gyp info spawn args ‘-I’,
1124 error gyp info spawn args ‘C:\Users\speed\AppData\Local\node-gyp\Cache\22.1.0\include\node\common.gypi’,
1124 error gyp info spawn args ‘-Dlibrary=shared_library’,
1124 error gyp info spawn args ‘-Dvisibility=default’,
1124 error gyp info spawn args ‘-Dnode_root_dir=C:\Users\speed\AppData\Local\node-gyp\Cache\22.1.0’,
1124 error gyp info spawn args ‘-Dnode_gyp_dir=C:\Users\speed\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp’,
1124 error gyp info spawn args ‘-Dnode_lib_file=C:\\Users\\speed\\AppData\\Local\\node-gyp\\Cache\\22.1.0\\<(target_arch)\\node.lib’,
1124 error gyp info spawn args ‘-Dmodule_root_dir=C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\@serialport\bindings’,
1124 error gyp info spawn args ‘-Dnode_engine=v8’,
1124 error gyp info spawn args ‘–depth=.’,
1124 error gyp info spawn args ‘–no-parallel’,
1124 error gyp info spawn args ‘–generator-output’,
1124 error gyp info spawn args ‘C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\@serialport\bindings\build’,
1124 error gyp info spawn args ‘-Goutput_dir=.’
1124 error gyp info spawn args ]
1124 error gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
1124 error gyp info spawn args [
1124 error gyp info spawn args ‘build\binding.sln’,
1124 error gyp info spawn args ‘/clp:Verbosity=minimal’,
1124 error gyp info spawn args ‘/nologo’,
1124 error gyp info spawn args ‘/p:Configuration=Release;Platform=x64’
1124 error gyp info spawn args ]
1124 error gyp ERR! build error
1124 error gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe failed with exit code: 1
1124 error gyp ERR! stack at ChildProcess. (C:\Users\speed\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:209:23)
1124 error gyp ERR! stack at ChildProcess.emit (node:events:520:28)
1124 error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
1124 error gyp ERR! System Windows_NT 10.0.22631
1124 error gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Users\speed\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
1124 error gyp ERR! cwd C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings
1124 error gyp ERR! node -v v22.1.0
1124 error gyp ERR! node-gyp -v v10.1.0
1124 error gyp ERR! not ok
1125 verbose exit 1
1126 verbose code 1
1127 silly unfinished npm timer reify 1714830261550
1128 silly unfinished npm timer reify:build 1714830307589
1129 silly unfinished npm timer build 1714830307589
1130 silly unfinished npm timer build:deps 1714830307590
1131 silly unfinished npm timer build:run:install 1714830307716
1132 silly unfinished npm timer build:run:install:node_modules/edge-impulse-cli/node_modules/@serialport/bindings 1714830307717
1133 error A complete log of this run can be found in: C:\Users\speed\AppData\Local\npm-cache_logs\2024-05-04T13_44_20_957Z-debug-0.log

I’ve also followed the Luis suggestion from this post : Problems installing edge impulse cli - #6 by txol but without fix the issue and with this additional error :

Error: Cannot find module ‘C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\build\cli\blocks.js’
at Module._resolveFilename (node:internal/modules/cjs/loader:1224:15)
at Module._load (node:internal/modules/cjs/loader:1050:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:168:12)
at node:internal/main/run_main_module:30:49 {
code: ‘MODULE_NOT_FOUND’,
requireStack: []
}

Node.js v22.1.0
[>_<] Edge Impulse CLI is not installed.
PS C:\WINDOWS\system32>

Any good idea to fix this issue ?

Hi @bob63

If you look it the FAQ / troubleshooting you will see steps to resolve both python and node problems:

Python -

Node -

Hope this helps.

Best

Eoin

Hi Eoin , now it works after have followed these procedures.
Tks.

Hi @Eoin , I think to have shouting victory too early.
The procedure you provided have worked on my PC with w10 .
Today I’m looking to do the same on a pc with W11 but isn’t working .
I’ve followed all steps in the procedure then installed node js v19.8.1 including the additional tools but when i try to install the edge impulse client i got the errors that you see at the bottom . Take in consideration that I’ve followed step by step the same procedure that on W10 has worked perfectly.

From the below screenshoot seems that all the prerequisite packages are installed correctly .

Note : The same problem occur also using the latest version of Node JS v22.1.0

Is becoming really frustating lose so much time to set up the Edge Impluse client on this machine.

C:\Users\speed>npm install -g edge-impulse-cli --force
npm WARN using --force Recommended protections disabled.
npm WARN deprecated @zeit/dockerignore@0.0.5: “@zeit/dockerignore” is no longer maintained
npm WARN deprecated figgy-pudding@3.5.2: This module is no longer supported.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request-promise@4.2.4: request-promise has been deprecated because it extends the now deprecated request package, see Request’s Past, Present and Future · Issue #3142 · request/request · GitHub
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. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
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. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
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. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
npm WARN deprecated uuid@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 There’s Math.random(), and then there’s Math.random() · V8 for details.
npm WARN deprecated request@2.88.0: request has been deprecated, see Request’s Past, Present and Future · Issue #3142 · request/request · GitHub
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup ‘C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli’,
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir ‘C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\lodash’] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: ‘EPERM’,
npm WARN cleanup syscall: ‘rmdir’,
npm WARN cleanup path: ‘C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\lodash’
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup ‘C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\rxjs’,
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir ‘C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\rxjs_esm5’] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: ‘EPERM’,
npm WARN cleanup syscall: ‘rmdir’,
npm WARN cleanup path: 'C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\rxjs\esm5’
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup ‘C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules’,
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir ‘C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\tar-stream\node_modules’] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: ‘EPERM’,
npm WARN cleanup syscall: ‘rmdir’,
npm WARN cleanup path: ‘C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\tar-stream\node_modules’
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup ‘C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\tar-stream’,
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir ‘C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\tar-stream\node_modules’] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: ‘EPERM’,
npm WARN cleanup syscall: ‘rmdir’,
npm WARN cleanup path: ‘C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\tar-stream\node_modules’
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.1
npm ERR! gyp info using node@19.8.1 | win32 | x64
npm ERR! gyp info find Python using Python version 3.12.3 found at “C:\Python312\python.exe”
npm ERR! gyp info find VS using VS2019 (16.11.34729.46) found at:
npm ERR! gyp info find VS “C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools”
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info spawn C:\Python312\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args ‘C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py’,
npm ERR! gyp info spawn args ‘binding.gyp’,
npm ERR! gyp info spawn args ‘-f’,
npm ERR! gyp info spawn args ‘msvs’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\@serialport\bindings\build\config.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\addon.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘C:\Users\speed\AppData\Local\node-gyp\Cache\19.8.1\include\node\common.gypi’,
npm ERR! gyp info spawn args ‘-Dlibrary=shared_library’,
npm ERR! gyp info spawn args ‘-Dvisibility=default’,
npm ERR! gyp info spawn args ‘-Dnode_root_dir=C:\Users\speed\AppData\Local\node-gyp\Cache\19.8.1’,
npm ERR! gyp info spawn args ‘-Dnode_gyp_dir=C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp’,
npm ERR! gyp info spawn args ‘-Dnode_lib_file=C:\\Users\\speed\\AppData\\Local\\node-gyp\\Cache\\19.8.1\\<(target_arch)\\node.lib’,
npm ERR! gyp info spawn args ‘-Dmodule_root_dir=C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\@serialport\bindings’,
npm ERR! gyp info spawn args ‘-Dnode_engine=v8’,
npm ERR! gyp info spawn args ‘–depth=.’,
npm ERR! gyp info spawn args ‘–no-parallel’,
npm ERR! gyp info spawn args ‘–generator-output’,
npm ERR! gyp info spawn args ‘C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\@serialport\bindings\build’,
npm ERR! gyp info spawn args ‘-Goutput_dir=.’
npm ERR! gyp info spawn args ]
npm ERR! Traceback (most recent call last):
npm ERR! File “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py”, line 42, in
npm ERR! import gyp # noqa: E402
npm ERR! ^^^^^^^^^^
npm ERR! File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp_init
.py", line 9, in
npm ERR! import gyp.input
npm ERR! File “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\input.py”, line 19, in
npm ERR! from distutils.version import StrictVersion
npm ERR! ModuleNotFoundError: No module named ‘distutils’
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 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:325:16)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:512:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Windows_NT 10.0.22631
npm ERR! gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
npm ERR! gyp ERR! cwd C:\Users\speed\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings
npm ERR! gyp ERR! node -v v19.8.1
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok