我已经做了很多搜索,无法找到我在任何地方列出的相同错误.我在尝试构建node-gyp时收到以下错误消息: node-gyp buildgyp info it worked if it ends with okgyp info using node-gyp@3.3.1gyp info using node@0.1
node-gyp build gyp info it worked if it ends with ok gyp info using node-gyp@3.3.1 gyp info using node@0.10.43 | darwin | x64 gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] make: *** No rule to make target `Release/obj.target/binding/src/binding.o', needed by `Release/binding.node'. Stop. gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/Users/alexbromage/.nvm/v0.10.43/lib/node_modules/node- gyp/lib/build.js:276:23) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12) gyp ERR! System Darwin 15.3.0 gyp ERR! command "node" "/Users/alexbromage/.nvm/v0.10.43/bin/node-gyp" "build" gyp ERR! cwd /Users/alexbromage gyp ERR! node -v v0.10.43 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok
我的binding.gyp文件如下所示:
{ "targets": [ { "target_name": "binding", "sources": [ "src/binding.cc" ] } ] }
我认为我的源代码引用不正确,但我无法找到正确设置它的内容.任何帮助赞赏
通常,当发生此错误时,源文件路径不正确.