How do I get node-gyp to work on Windows 7 platform

后端 未结 3 1834
北海茫月
北海茫月 2020-12-29 08:01

My attempts to use node-gyp on a Windows 7 + Node.js platform have failed [3] when attempting to compile the standard \"Hello World\" example [2]. Note: node-gyp is failing

3条回答
  •  一个人的身影
    2020-12-29 08:35

    Before you do anything, update Node and NPM by installing from the the node website (updating node and npm via npm appears to be busted on Windows. I'm not sure those delete-and-reinstall-everything-in-order instructions are current but that would most certainly be a major PITA which was what inspired me to look for alternatives given that that post was a little old in node years.

    Ultimately, this resolved an issue for me with node-gyp as a dependency for the pg module and it ran with vs 2013, I believe (or at least that's what it appeared to be looking for before it started working).

提交回复
热议问题