eliza icon indicating copy to clipboard operation
eliza copied to clipboard

Error: Could not find wrtc binary on any of the paths when running pnpm start

Open junlongYE1110 opened this issue 1 month ago • 23 comments

I encountered an error when running pnpm start in my project. The error message indicates that the required wrtc binary could not be found. Below is the full error log:

/mnt/c/Users/cxz63/solana/eliza/eliza-starter/node_modules/.pnpm/@[email protected]/node_modules/@roamhq/wrtc/lib/binding.js:27 throw new Error(Could not find wrtc binary on any of the paths: ${paths_to_try}); ^

Error: Could not find wrtc binary on any of the paths: ../build-linux-x64/wrtc.node,../build-linux-x64/Debug/wrtc.node,../build-linux-x64/Release/wrtc.node,@roamhq/wrtc-linux-x64,./node_modules/@roamhq/wrtc-linux-x64,./node_modules/@roamhq/wrtc-linux-x64/wrtc.node at Object. (/mnt/c/Users/cxz63/solana/eliza/eliza-starter/node_modules/.pnpm/@[email protected]/node_modules/@roamhq/wrtc/lib/binding.js:27:9)
at Module._compile (node:internal/modules/cjs/loader:1568:14) at Object..js (node:internal/modules/cjs/loader:1711:10) at Module.load (node:internal/modules/cjs/loader:1328:32) at Function._load (node:internal/modules/cjs/loader:1138:12) at TracingChannel.traceSync (node:diagnostics_channel:315:14) at wrapModuleLoad (node:internal/modules/cjs/loader:218:24) at Module.require (node:internal/modules/cjs/loader:1350:12) at require (node:internal/modules/helpers:138:16) at Object. (/mnt/c/Users/cxz63/solana/eliza/eliza-starter/node_modules/.pnpm/@[email protected]/node_modules/@roamhq/wrtc/lib/index.js:23:5)

Here are the details of my development environment: Operating System: Windows 10 using WSL 2 (Ubuntu 20.04.6 LTS) Node.js Version: v23.0.0 pnpm Version: 9.15.2 Python Version: 3.8.10

Is this issue related to the @roamhq/wrtc module compatibility with WSL or Node.js v23? Are there any additional steps or configurations required to make this module work in WSL?

junlongYE1110 avatar Jan 07 '25 15:01 junlongYE1110