Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not locate the bindings file #105

Open
hnuuhc opened this issue Nov 2, 2024 · 0 comments
Open

Could not locate the bindings file #105

hnuuhc opened this issue Nov 2, 2024 · 0 comments

Comments

@hnuuhc
Copy link

hnuuhc commented Nov 2, 2024

Version: ^16.5.6

What I did wrong?

In BunJs v1.1.33

import frida from 'frida'

var device = await frida.getLocalDevice()

console.log(device)
121 |         throw e;
122 |       }
123 |     }
124 |   }
125 |
126 |   err = new Error(
              ^
error: Could not locate the bindings file. Tried:
 → F:\Project\NodeScript\node_modules\frida\build\frida_binding.node
 → F:\Project\NodeScript\frida_binding.node
      at bindings (F:\Project\NodeScript\node_modules\bindings\bindings.js:126:9)
      at F:\Project\NodeScript\node_modules\frida\dist\native.js:5:19
      at F:\Project\NodeScript\node_modules\frida\dist\cancellable.js:4:7
      at F:\Project\NodeScript\node_modules\frida\dist\index.js:5:7

Bun v1.1.33 (Windows x64)

In NodeJS v20.12.2

// import frida from 'frida'
var frida = require('frida')

var device = frida.getUsbDevice()

console.log(device)
f:\Project\NodeScript\node_modules\bindings\bindings.js:126
  err = new Error(
        ^
Error: Could not locate the bindings file. Tried:
 → f:\Project\NodeScript\node_modules\frida\build\frida_binding.node
 → F:\Project\NodeScript\frida_binding.node
    at bindings (f:\Project\NodeScript\node_modules\bindings\bindings.js:126:9)
    at Object.<anonymous> (f:\Project\NodeScript\node_modules\frida\dist\native.js:5:19)
    at Module._compile (node:internal/modules/cjs/loader:1369:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
    at Object.require.extensions.<computed> [as .js] (D:\NodeJS\node_modules\ts-node\src\index.ts:1608:43)
    at Module.load (node:internal/modules/cjs/loader:1206:32)
    at Function.Module._load (node:internal/modules/cjs/loader:1022:12)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (f:\Project\NodeScript\node_modules\frida\dist\cancellable.js:4:18) {
  tries: [
    'f:\\Project\\NodeScript\\node_modules\\frida\\build\\frida_binding.node',
    'F:\\Project\\NodeScript\\frida_binding.node'
  ]
}
@hnuuhc hnuuhc changed the title Need compatible bunjs Could not locate the bindings file Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant