FreeBSD ships with its own make program that is not compatible with the Node makefiles. This patch makes it use gmake when available.
Added support for FreeBSD
Seems more like a patch for node itself? Also not everyone who has both gmake and make will prefer to use gmake.
Still a workaround would be very desirable
My suggestion then is to check uname and if its FreeBSD use gmake. Does this sound like an acceptable solution?
That should work. A better way is probably examining make itself, but I don't know how to do it. FreeBSDs make doesn't even have -v or --version option.
Yeah, unfortunately FreeBSD make doesn't seem to have a way to get the version. The only way I can come up with on the top of my head would be to check the capabilities of make by sending in a flag or something that is only supported in one of the makes, and then check the return code. But that seems to me like an uglier way then just checking uname.
I'll try to get some advice from more seasoned FreeBSD users.
This is absolutely a bug that should be filed against node, not against nvm.