Problem when installing Hiredis module

Asked

Viewed 43 times

3

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

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’t succeed in installing it.

I already installed the official module of Redis and the DB itself, and both work normally, I’m just having problems with Hiredis.

Follows error:

inserir a descrição da imagem aqui

From now on, thank you.

  • 1

    I had a similar problem where I could install on Mac environment but not on Window, with the node-gyp. You may have seen it, but take a look here: http://stackoverflow.com/questions/33183161/node-gyp-error-tracker-error-trk0005-failed-to-locate-clocatl-exethe-system-c

  • 1

    @Sergio, I had already done this with my version of MSVS 2015, but his link helped me with the other answers and comments, which after following a few steps, I was able to solve the problem. Thank you.

1 answer

2


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

  • I ran it at the prompt:

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

Worked!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.