Skip to content

cannot find node_modules/deepspeech/lib/binding/v0.9.3/linux-x64/node-v93/deepspeech.node #169

Description

@raphael10-collab

I'm having the same issue described here: #138

recognize-wav.mjs:

import DeepSpeech from 'deepspeech'

Executing:

node recognize-wav.mjs 
node:internal/modules/cjs/loader:933
  const err = new Error(message);
              ^

Error: Cannot find module '/home/raphy/Raphy-Template/node_modules/deepspeech/lib/binding/v0.9.3/linux-x64/node-v93/deepspeech.node'
Require stack:
- /home/raphy/Raphy-Template/node_modules/deepspeech/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/raphy/Raphy-Template/node_modules/deepspeech/index.js:24:17)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:190:29) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/home/raphy/Raphy-Template/node_modules/deepspeech/index.js' ]
}

node v16.13.0 which is the current LTS node version: https://nodejs.org/en/

How to make it work?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions