gmake is required to build FreeNAS.

npm installs things (Node Package Manager) but it doesn't installs deps, so
it decides it needs a module that depends ornf gmake and boom.

Unless of course you happen to have gmake installed because of something else...