gemini-testing / png-img

Lite libpng wrapper for node.js
MIT License
29 stars 13 forks source link

Windows 8.1 issue - node-gyp rebuild #34

Closed MichalGrzegorzak closed 1 year ago

MichalGrzegorzak commented 7 years ago

Hi, I have Visual Studio 2017, have downloaded even old build tools for VS 2013. But it`s still failing on node-gyp rebuild. Read a couple of workarounds on this on the web, but nothing works. Seems like VS 2017 is to blame :/ Any tips ?

C:\Users\user\AppData\Roaming\npm\node_modules\png-img>if not defined npm_config _node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\... .\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild ) Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.t argets(57,5): error MSB8020: The build tools for v120 (Platform Toolset = 'v120 ') cannot be found. To build using the v120 build tools, please install v120 bu ild tools. Alternatively, you may upgrade to the current Visual Studio tools b y selecting the Project menu or right-click the solution, and then selecting "R etarget solution". [C:\Users\user\AppData\Roaming\npm\node_modules\png-img\buil d\third_party\libpng\libpng.vcxproj] C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.t argets(57,5): error MSB8020: The build tools for v120 (Platform Toolset = 'v120 ') cannot be found. To build using the v120 build tools, please install v120 bu ild tools. Alternatively, you may upgrade to the current Visual Studio tools b y selecting the Project menu or right-click the solution, and then selecting "R etarget solution". [C:\Users\user\AppData\Roaming\npm\node_modules\png-img\buil d\third_party\zlib\zlib.vcxproj]

j0tunn commented 7 years ago

Hi. Have you tried what it suggests to you? "To build using the v120 build tools, please install v120 bu ild tools"

MichalGrzegorzak commented 7 years ago

Yes I did, have VS 2017, and I installed every build tools possible. Guys from 'node-gyp' are aware of this problem, and they even raise it to Visual Studio team.