CLI installation on windows 11 machine

I installed python, then Jupyter, then nodejs with tools as mentioned on Edge Impulse CLI install documentation. I get the following error after I execute the “npm install -g edge-impulse-cli --force” command

npm error code 1
npm error path C:\Users\mohansa\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@11.0.0
npm error gyp info using node@22.14.0 | win32 | arm64
npm error gyp info find Python using Python version 3.13.3 found at “C:\Users\mohansa\AppData\Local\Programs\Python\Python313\python.exe”
npm error gyp http GET “https://nodejs.org/download/release/v22.14.0/node-v22.14.0-headers.tar.gz
npm error gyp http fetch GET “https://nodejs.org/download/release/v22.14.0/node-v22.14.0-headers.tar.gz” attempt 1 failed with SELF_SIGNED_CERT_IN_CHAIN

Steps Taken:

  1. U:>npm install node-gyp@latest -g

changed 100 packages in 4s
17 packages are looking for funding
run npm fund for details
Then ran command again
U:>npm install -g edge-impulse-cli --force

Expected Outcome:
Hoping no errors as earlier

Actual Outcome:
Same error as I posted above

Reproducibility:
-Always
Environment:
|OS Name|Microsoft Windows 11 Enterprise|
|Version|10.0.26100 Build 26100|
|Other OS Description |Not Available|
|OS Manufacturer|Microsoft Corporation|
|System Name|QCOM-Z0YBJH4JEW|
|System Manufacturer|LENOVO|
|System Model|21N2S01F00|
|System Type|ARM64-based PC|
|System SKU|LENOVO_MT_21N2_BU_Think_FM_ThinkPad T14s Gen 6|
|Processor|Snapdragon(R) X Elite - X1E78100 - Qualcomm(R) Oryon™ CPU, 3417 Mhz, 12 Core(s), 12 Logical Processor(s)|
|BIOS Version/Date|LENOVO N42ET87W (2.17 ), 1/20/2025|
|SMBIOS Version|3.3|
|Embedded Controller Version|1.26|
|BIOS Mode|UEFI|
|BaseBoard Manufacturer|LENOVO|

Hello @mohansa,

How did you install NodeJS?
You issue seems to come from node-gyp. Depending on your installation NodeJS can come with node-gyp.
See Installation | Edge Impulse Documentation

For Windows users, install the Additional Node.js tools (called Tools for Native Modules on newer versions) when prompted.

Best,

Louis

I followed the instructions on Edge Impulse CLI installation and chose to install the additional nodejs tools. I still get the error.

Hello @mohansa,

Could you check that your network settings are correctly configured and that there are no proxy settings interfering with the SSL certificate validation.

Also, you can configure npm to use a different registry that might not have the SSL certificate issue. e.g.:

npm config set registry http://registry.npmjs.org/
npm install -g edge-impulse-cli --force

You could also try to manually install the package that is failing (@serialport/bindings in this case) and then retry the installation of edge-impulse-cli.

npm install @serialport/bindings
npm install -g edge-impulse-cli --force

Let me know if this works!

Best,

Louis

1 Like