Saturday, October 4, 2014

npm install mariasql failed (Windows 7, 64bit)

Environment: Windows 7, 64bit
NodeJS version: 0.10.30

npm install mariasql will not work due to "node-gyp rebuild" failed.

To fix it:

  1. I installed Python 2.7.x (at time of this writing - 4th October 2014), 32bit edition.
  2. Create environment variable PYTHON, with the value of "\python.exe"  
  3. Yes, you must include python.exe in your Environment Variable setting or it will NOT work.
  4. Start a new CMD shell and run "npm install mariasql" again.

It will take some time but it will succeed.

Hope this helps.