Error inquiry when running run_zaptool

Hi

I use the nRF52840 board and am currently working on a Matter project.

I am trying to add a cluster to an existing Matter sample project as per the link guide below.

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_matter_creating_accessory.html

However, when run_zaptool.sh is executed, the following error occurs.

classic037  ~/Desktop/Matter/ncs/modules/lib/matter  ➦ 0ad8f70d5 ±  ./scripts/tools/zap/run_zaptool.sh ../../../nrf/samples/matter/sensor/src/template.zap
Rocket Executing: git log -1 --format={"hash": "%H","timestamp": %ct}
Mag Git commit: e9277b989f1d128bc881e88ecbf7a3353c841c39 from Wed May 11 2022 23:45:40 GMT+0900 (대한민국 표준시)
Mag Current src hash: aqrjjVB67BD5DC9iha9ORJah5zc=
Mag Current src-shared hash: nOWlRqSeZbEDOkt+AnCdf01DNYM=
Mag Previous src hash: aqrjjVB67BD5DC9iha9ORJah5zc=
Mag Previous src-shared hash: nOWlRqSeZbEDOkt+AnCdf01DNYM=
Thumbsup There were no changes to front-end code, so we don't have to rebuild the SPA.
Rocket Executing: npx tsc --build ./tsconfig.json
Rocket Executing: npx copyfiles -V ./src-electron/**/*.sql ./dist/
unglobed path: ./src-electron/db/zap-schema.sql
copy from: ./src-electron/db/zap-schema.sql
copy to: dist/src-electron/db/zap-schema.sql
Rocket Executing: npx electron /Users/classic037/Desktop/Matter/ncs/modules/lib/matter/third_party/zap/repo/dist/src-electron/ui/main-ui.js --logToStdout --gen /Users/classic037/Desktop/Matter/ncs/modules/lib/matter/src/app/zap-templates/app-templates.json --zcl /Users/classic037/Desktop/Matter/ncs/modules/lib/matter/src/app/zap-templates/zcl/zcl.json -i /Users/classic037/Desktop/Matter/ncs/nrf/samples/matter/sensor/src/template.zap
⇝ Electron failed to install correctly, please delete node_modules/electron and try installing again
Thumbsdown Program npx exited with error code: 1

I use a MacBook Pro M1 and do the above in Mac OS 12.2.1 environment.

Please help and guide

Thank you!

Parents Reply Children
Related