Joyent SmartOS: Installing NPM Packages

695 Views Asked by At

So I'm trying to host a node app with Joyent smartOS. After creating my instance, I git copied my current commit and tried to run npm install. The only problem is the process will get a little of the way through then fail.

Sifting through the logs, this seems the most relevant to me:

ERR!stack  Error: not found: make

I ran the package it fails on, npm install jquery, and I received the same fail error.

Does Joyent's node-based smartOS not have a make keyword? Is there anyway around this?

2

There are 2 best solutions below

2
On BEST ANSWER

The default SmartOS image is lean, and doesn't include the "make" package. You should be able to install it with "pkgin install gmake".

0
On

If you are in a non-global zone, you need to do:

pkgin install gmake-3.82nb5

...