Skip to content

[Node.js] Cannot find module 'tokenizers-darwin-arm64' after npm install on macOS (Apple Silicon) #1922

@uasan

Description

@uasan

I’m encountering an issue when installing and using the tokenizers npm package on macOS with Apple Silicon (ARM64).
After running npm install, the installation completes without fatal errors, but at runtime Node.js fails to load the native binary:

Error: Cannot find module 'tokenizers-darwin-arm64'

This happens immediately when importing or requiring tokenizers.

Environment:

OS: macOS (Apple Silicon, ARM64)
Node.js version: 25
npm version: 11.6.2
tokenizers version: 0.13.3
Package manager: npm
Architecture: arm64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions