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

Error: Could not locate the binding file. Tried: node_modules/frida/build/frida_binding.node #14

Open
huan opened this issue Aug 5, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@huan
Copy link
Owner

huan commented Aug 5, 2021

  • Easy solution: use a server outside of China to get an unblocked network connection.
  • Hard solution: download frida_binding.node from https://github.com/frida/frida/releases/ manually (the packaged file name is frida-v{version}-node-*.tar.gz, for example, frida-v15.0.13-node-v64-darwin-arm64.tar.gz). Pick the right version and architecture for you, and then put it into node_modules/frida/build folder.

Explanation:

frida is using prebuild-install to install binary files from GitHub Release.

If your server has any trouble with visiting the Amazon S3 servers (which is all the GitHub release artifacts are hosted on), then your NPM install will fail to download the binary files (frida_binding.node in our case).

@huan
Copy link
Owner Author

huan commented Aug 5, 2021

Update

We have created https://github.com/huan/sidecar/blob/main/scripts/post-install.js to check and re-install via CDN if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant