NPM native builds with only Visual Studio 2013 installed

后端 未结 5 1282
隐瞒了意图╮
隐瞒了意图╮ 2021-02-14 04:27

I\'ve got a clean install of Windows with Visual Studio 2013 Pro installed, along with current versions of Python, node and npm.

I\'m trying to install the pg

5条回答
  •  甜味超标
    2021-02-14 05:00

    What helped me is to specify environment variable GYP_MSVS_VERSION to to use correct VS
    you can set it in Control center or in console before running npm, so for 2013 it is

    set GYP_MSVS_VERSION=2013

    and for 2015 you use

    set GYP_MSVS_VERSION=2015

    With free VS 2013 or 2015 community edition it should be the easiest way.

    PS
    I believe for VS 2013 Express you should use

    set GYP_MSVS_VERSION=2013e

    where e tells npm to use express version

提交回复
热议问题