Skip to content

Installation on MacOS M1 Monterey #67

@ChrisMcMStone

Description

@ChrisMcMStone

Hi @FrenchYeti,

Thank you for your work on this great tool. I'm looking forward to trying it out.
Could you please help me install it?

I'm trying to install it with Node v12, however I am getting the below error and struggling to resolve. I believe it might be related the the architecture of the M1 chipset on my Macbook. Could you share any insight?

npm WARN deprecated crypto@1.0.1: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
/Users/cmstone/.nvm/versions/node/v12.22.7/bin/dexcalibur -> /Users/cmstone/.nvm/versions/node/v12.22.7/lib/node_modules/dexcalibur/dexcalibur

> frida@15.1.8 install /Users/cmstone/.nvm/versions/node/v12.22.7/lib/node_modules/dexcalibur/node_modules/frida
> prebuild-install || node-gyp rebuild

prebuild-install WARN install dlopen(/Users/cmstone/.nvm/versions/node/v12.22.7/lib/node_modules/dexcalibur/node_modules/frida/build/Release/frida_binding.node, 0x0001): tried: '/Users/cmstone/.nvm/versions/node/v12.22.7/lib/node_modules/dexcalibur/node_modules/frida/build/Release/frida_binding.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/frida_binding.node' (no such file), '/usr/lib/frida_binding.node' (no such file)
gyp: binding.gyp not found (cwd: /Users/cmstone/.nvm/versions/node/v12.22.7/lib/node_modules/dexcalibur/node_modules/frida) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/cmstone/.nvm/versions/node/v12.22.7/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 21.1.0
gyp ERR! command "/Users/cmstone/.nvm/versions/node/v12.22.7/bin/node" "/Users/cmstone/.nvm/versions/node/v12.22.7/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/cmstone/.nvm/versions/node/v12.22.7/lib/node_modules/dexcalibur/node_modules/frida
gyp ERR! node -v v12.22.7
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! frida@15.1.8 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the frida@15.1.8 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/cmstone/.npm/_logs/2021-10-27T15_58_12_825Z-debug.log```

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions