node-gyp build error windows x64

前端 未结 10 1553
情书的邮戳
情书的邮戳 2020-11-28 22:05

Here\'s what I\'ve done so far on my x64 OS:

  • Installed Python (v2.7 --specifically 2.7.6) and added it to the system path (C:\\Python27)
  • Installed MS
10条回答
  •  南笙
    南笙 (楼主)
    2020-11-28 22:31

    I had a similar problem. I found that this switch helped me

    --msvs_version=2012
    

    so for example

    npm install --msvs_version=2012 
    

提交回复
热议问题