Many Node JS modules are not having pre-built binaries ready at certain Node JS versions, especially latest Node JS. Thus building from source process is required if developer wants to use the module.

There are typically 3 types of Node JS modules with source code JavaScript, Python, and C++. The JIT compiler which comes with Node JS deal with JavaScript source so developer doesn’t need to mind about this. However, Python source code and C++ source code need to be built into binaries.

Python:

  • Remove Python 3.x as node-gyp only works with Python 2.x
  • Install latest Python 2.x from http://python.org

C++:

  • Remove Visual Studio (to avoid conflict, reinstall back later)
  • Remove Windows SDK 8.1 (to avoid conflict, reinstall back later)
  • Remove Windows SDK 10 (to avoid conflict, reinstall back later)
  • Remove Node JS module ‘windows-build-tools’
  • Install Visual C++ Build Tools from http://landinghub.visualstudio.com/visual-cpp-build-tools
Advertisements