Skip to content

Unable to install fridax because binding.gyp not found - Windwos & Linux #32

@lNATl

Description

@lNATl

Installation prerequisites in windows (10):

  • Microsoft Visual Studio
  • Microsoft Visual Studio Build Tools
  • Desktop development with C++
  • Python Stable Version
  • Nodejs Stable Version
  • node-gyp - Node.js native addon build tool
  • Git

I installed all prerequisites according to their latest version. But after installation I faced many problems. One of the problems I encountered was the following error:

...
gyp: binding.gyp not found (cwd: C:\Users\lnatl\Desktop\fridax) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
...

I found out that these problems are related to node-gyp. So I tried all the solutions available for Windows operating system Like:

  • Downgrading Python to version 2
  • Install Microsoft Build Tools
  • Specifying the MSVS version for NPM
  • Installing the node-gyp several times globally
  • Installing node native modules
  • node-gyp configure and rebuild
  • npm cache clean --force
  • Mandatory introduction of the Python path due to the use of different versions of Python.

And in the end, I reviewed and implemented most of the issues related to this address:
https://github.com/nodejs/node-gyp/issues
The only thing I noticed was that the python version has nothing to do with the gyp node problem. Also, the 2015, 2017 and 2019 versions of Microsoft Visual Studio are better compatible with the node-gyp (according to the experience of people who used the node-gyp).So I decided to install Visual Studio version 2017 (15.9.2) and Visual Studio Build Tools version 2017 (15.9.51). Also, I already had Python version 3.10.5 installed, and since the problem was not with Python, I did not make any changes in the installation of Python with different versions.But the result was still the same.what should i do? After a lot of frustration, I might get better results in Linux. So I installed Ubuntu version 20.04.1 on a virtual machine.


Installation prerequisites in Linux (Ubuntu v20.04):

  • nodejs latest version!
  • node-gyp - Node.js native addon build tool
  • By default, Python is identified with version 3. If for any reason it is not installed, install one of the following versions:
    Python v3.7, v3.8, v3.9, or v3.10
  • A proper C/C++ compiler toolchain, like GCC
  • Build-essential Meta-Package
  • Git

In this environment, I also received the same errors for the following path:

...
gyp: binding.gyp not found (cwd: /home/lnatl/Desktop/fridax) while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
...

Also for the Frida module which was being installed in the node_modules folder:

...
npm ERR! gyp: binding.gyp not found (cwd: /tmp/fridax/node_modules/frida) while trying to load binding.gyp
npm ERR! gyp ERR! configure error 
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions