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'
]
}
Version: ^16.5.6
What I did wrong?
In BunJs v1.1.33
In NodeJS v20.12.2