make: *** No rule to make target `Release/ #165

yarcowang opened this Issue Nov 15, 2012 · 11 comments


None yet
7 participants
$ node-gyp build
gyp info it worked if it ends with ok
gyp info using node-gyp@0.8.0
gyp info using node@0.8.14 | darwin | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: *** No rule to make target `Release/', needed by `Release/hello.node'.  Stop.
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/share/npm/lib/node_modules/node-gyp/lib/build.js:232:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack     at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Darwin 12.2.0
gyp ERR! command "node" "/usr/local/share/npm/bin/node-gyp" "build"
gyp ERR! cwd /Users/yarco/Sites/js/tmp
gyp ERR! node -v v0.8.14
gyp ERR! node-gyp -v v0.8.0
gyp ERR! not ok 

following the code from


TooTallNate commented Nov 15, 2012

How did you install node-gyp?

npm install -g node-gyp

BTW, i'm updating my XCode. will it affect this?

node-gyp configure is ok
just node-gyp build.

$ tree build/
├── Makefile
├── binding.Makefile
├── config.gypi
├── gyp-mac-tool

0 directories, 5 files

seems didn't create the directory Release


TooTallNate commented Nov 16, 2012

I can't seem to reproduce. Can you give me any more details?

oh, sorry...i make something wrong. it is ok now.

yarcowang closed this Nov 16, 2012

yarcowang, I am facing a similar problem what did you do to solve the issue? Could you post further details?

Yes, i'm shamed to say that...

the filename in binding.gyp (field: targets -> sources) is not right!!!

Thanks mate!! I just spotted the same problem my source file was named "test.cpp" and in the binding.gyp targets -> sources I had wrongly mentioned ""

Vimos commented Oct 17, 2014

Me too, same problem, thank you!

zyfyy commented Oct 25, 2014

Mine lacks the file path.

Hi, i'm a newer, could you please tell me how to define the "target" and "source"?

omg yeah i had a typo in targets->sources as well, wrong filename, haha shit! Thanks for this post, would have taken me hours otherwise. It's in binding.gyp, William

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment