"node-gyp build" 致命错误 C1083

"node-gyp build" Fatal error C1083

我正在尝试使用 nodejs 运行 在我的 windows 10 (x64) 上创建一个项目。 对于 运行 这个项目,我得到了一个 components/packages 的安装列表,其中包括 Bower、Ruby、Sass、G运行t、MySQL 和 Redis。其他组件包括安装 node-gyp、node-canvas、Python 2.7 和 Microsoft Build Tools (Link:https://github.com/Automattic/node-canvas/wiki/Installation---Windows)。

安装所有依赖项后,我不断收到错误消息:

c1xx : fatal error C1083: Cannot open source file: '..\src\binding.cc': No such file or directory [C:\myeffect\build\binding.vcxproj]

我已尽我所能解决错误,重新安装所有内容,在系统变量上将 PATH 添加到 python,一切。

但是错误不断出现。请有人帮助我做什么。

你可以试试,我解决了

创建C:\myeffect\src\binding.cc。bingd.cc文件为空文件。