Node packages not building on Windows 8.1 - Missing Microsoft.Cpp.Default.props

后端 未结 8 2036
有刺的猬
有刺的猬 2020-12-04 19:19

NPM packages are not building on Windows 8.1 - failing with following error,

error MSB4019: The imported project \"C:\\Microsoft.Cpp.Default.props\" was not fo

8条回答
  •  南笙
    南笙 (楼主)
    2020-12-04 19:43

    This is the same issue as described here

    NPM native builds with only Visual Studio 2013 installed

    If you have a version of VS2013 installed set this environment variable before running the npm command:

    set GYP_MSVS_VERSION=2013
    

    or for VS2012

    set GYP_MSVS_VERSION=2012 
    

    background reading: https://github.com/Automattic/socket.io/issues/1151

提交回复
热议问题