NPM native builds with only Visual Studio 2013 installed

后端 未结 5 975
孤独总比滥情好
孤独总比滥情好 2021-02-14 04:15

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 04:59

    I was having similar errors with VS2015 but setting the msvs param:

    npm install --msvs_version=2015

    was not solving the problem. I could see that it was looking in the wrong place for the toolset no matter what I did.

    Long story short I learned that MSBuild is now packaged with Visual Studio and no longer packaged with .NET. Sure enough I had this entry in the PATH variable:

    C:\Windows\Microsoft.NET\Framework\v4.0.30319;
    

    and consequently the wrong (old) version of MSBuild was being called. I removed this entry and added the following path which is relevant for VS2015:

    C:\Program Files (x86)\MSBuild\14.0\Bin\
    

    Problem solved.

提交回复
热议问题