Problem installing HiRedis module

3

I was installing the npm Hiredis module, but I had problems. According to its documentation, the only necessary prerequisite is the presence of Python 2.7 and gcc / g ++ 4.8 , which I already have.

  

This requires:

     
  • gcc / g ++ 4.8 or newer.
  •   
  • python 2.7 or any newer 2.x version. python 3.x is not supported.
  •   

But I still can not successfully install it.

I have already installed the official Redis module and the DB itself, and both work normally, I'm just having problems with HiRedis.

Following error:

Thanks in advance.

    
asked by anonymous 31.12.2016 / 00:22

1 answer

2

I was able to solve the problem with the following steps:

  • I circled this at the prompt:

    set GYP_MSVS_VERSION=2015
    npm config set msvs_version 2015 --global
    
  • I created a Visual C ++ Project file in Visual Studio 2015
  • I installed everything I asked for (C ++, Windows SDK, etc.)
  • Run the prompt as ADM and loop the module install command again.

It worked!

    
31.12.2016 / 15:40