相关疑难解决方法(0)

节点包不在Windows 8.1上构建 - 缺少Microsoft.Cpp.Default.props

NPM软件包不在Windows 8.1上构建 - 失败并出现以下错误,

error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

我试过以下,

  • 将环境变量设置VCTargetsPathC:\Program Files (x86)\MSBuild\12.0\(错误会相应更改,但Microsoft.Cpp.Default.props2012年构建工具没有).
  • 根据此答案安装VisualStudio 2010环境(卸载然后以正确的顺序安装)
  • 完全删除了VisualStudio 2010并尝试使用VisualStudio 2012,它应该根据 Node-gypwiki工作
  • 根据此答案添加了注册表项
  • 根据此答案尝试使用Windows 7.1 SDK命令提示符
  • VisualStudioVersion根据这个答案,在运行npm之前尝试设置
  • --msvs_version=2012根据这个答案尝试传递给npm

以上都没有奏效.

我已经花了很多年的时间.有没有人有明确的答案有效?

c++ msbuild visual-studio-2010 node.js visual-studio-2012

53
推荐指数
5
解决办法
5万
查看次数