Skip to contentSkip to navigationSkip to topbar
Page tools
Useful for sharing or LLM
Accelerate development with AI

On this page
Looking for more inspiration?Visit the

Troubleshoot Node.js Media SDK issues


Node install fails on Apple Silicon

node-install-fails-on-apple-silicon page anchor

The native binary only works on 64-bit systems.

  1. On an Apple Silicon (M-series) Mac, install Rosetta.
    /usr/sbin/softwareupdate --install-rosetta --agree-to-license
  2. Install Node.js(link takes you to an external page).
    If the installation fails, the command returns npm error code EBADPLATFORM.
  3. Verify that the Node installed a 64-bit version.
    node -e "console.log(process.arch)"
    macOS running Apple Silicon returns arm64.

No prebuilt binary found

no-prebuilt-binary-found page anchor

This error means the native addon isn't present for your platform and architecture. Confirm you're on a supported platform (Linux x64 or macOS x64) and running an x64 build of Node.js version 24 or later, then reinstall the SDK package.


Access Token or credential errors

access-token-or-credential-errors page anchor

If the token expired or the token was malformed, it returns a disconnected or connectFailure event with an AccessTokenInvalidError.

  1. Set environment variables for TWILIO_ACCOUNT_SID, TWILIO_API_KEY, and TWILIO_API_SECRET.
  2. The token carries a VideoGrant.

Frames don't appear in the Room

frames-dont-appear-in-the-room page anchor

Verify two actions in your code:

  1. Resolve connect(), then push frames. Any frames before that resolution get dropped.
  2. Review the parameters you pass to the Room:

Diagnose Room and media issues

diagnose-room-and-media-issues page anchor

To inspect a Room's media and connection health beyond your own logs, use Video Insights.

If you can't resolve an issue, contact Twilio Support(link takes you to an external page).