简体   繁体   中英

node-gyp build error mac os x

I have done a lot of searching and can't find the same error that I am facing listed anywhere.I get the following error message when trying to build node-gyp:

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 

My binding.gyp file looks like this:

{
  "targets": [
    {
      "target_name": "binding",
      "sources": [ "src/binding.cc" ]
    }
  ]
}

I think my source reference is incorrect but I can't find what to set it to correctly. Any help appreciated

通常,当发生此错误时, sources文件路径不正确。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM