Error while installing CLI tool and flash image to Himax WE-I Plus

[Environment]

  • OS: Win10
  • Board: Himax WE-I Plus

2 errors while install and flash image

[Error1]
By following steps to cli-installation

  • Install [Python 3]<<install okay
  • Install [Node.js]<<install okay
  • Install the CLI tools via:
    npm install -g edge-impulse-cli --force
    <<Error happen with log:
    C:\Users\500018>npm install -g edge-impulse-cli --force
    npm WARN using --force Recommended protections disabled.
    npm WARN deprecated har-validator@5.1.5: this library is no longer supported
    npm WARN deprecated @zeit/dockerignore@0.0.5: “@zeit/dockerignore” is no longer maintained
    npm WARN deprecated request-promise@4.2.4: request-promise has been deprecated because it extends the now deprecated request package,
    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.
    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.
    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.
    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.
    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.
    npm WARN deprecated request@2.88.0: request has been deprecated,
    npm notice
    npm notice New minor version of npm available! 8.3.1 -> 8.5.0
    npm notice Run npm install -g npm@8.5.0 to update!
    npm notice
    npm ERR! code 1
    npm ERR! path C:\Users\500018\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@8.4.1
    npm ERR! gyp info using node@16.14.0 | win32 | x64
    npm ERR! gyp info find Python using Python version 3.10.2 found at “C:\Python310\python.exe”
    npm ERR! gyp http GET https://nodejs.org/download/release/v16.14.0/node-v16.14.0-headers.tar.gz
    npm ERR! gyp WARN install got an error, rolling back install
    npm ERR! gyp ERR! configure error
    npm ERR! gyp ERR! stack FetchError: request to https://nodejs.org/download/release/v16.14.0/node-v16.14.0-headers.tar.gz failed, reason: unable to verify the first certificate
    npm ERR! gyp ERR! stack at ClientRequest. (C:\Program Files\nodejs\node_modules\npm\node_modules\minipass-fetch\lib\index.js:110:14)
    npm ERR! gyp ERR! stack at ClientRequest.emit (node:events:520:28)
    npm ERR! gyp ERR! stack at TLSSocket.socketErrorListener (node:_http_client:442:9)
    npm ERR! gyp ERR! stack at TLSSocket.emit (node:events:532:35)
    npm ERR! gyp ERR! stack at emitErrorNT (node:internal/streams/destroy:157:8)
    npm ERR! gyp ERR! stack at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    npm ERR! gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21)
    npm ERR! gyp ERR! System Windows_NT 10.0.18363
    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\500018\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings
    npm ERR! gyp ERR! node -v v16.14.0
    npm ERR! gyp ERR! node-gyp -v v8.4.1
    npm ERR! gyp ERR! not ok

[Error2]
unable to find module

Hello @bigcat,

Can I make sure you installed the additional tools when installing NodeJS? This issue often comes from that:

Regards,

Louis

Hello, I have the same problem and I have installed the tools for native modules …

Do you have any other suggestions?