With most NPM packages you can invoke their command line application by running it from the bin
folder inside the package's folder in node_modules
:
npm install foo
./node_modules/foo/bin/foo
Now of course you can do this more easily if you install the package globally:
npm install -g foo
foo
but that's generally considered to be a bad practice.
With the compass
package however this doesn't appear to be the case. When you do:
npm install compass
the package's node_modules
directory doesn't even have a bin
folder.
So, my question is, is there anyway to install compass non-globally, but still be able to invoke it from the command line?
P.S. I know I could also install compass through the system, ie. sudo apt-get install compass
, but I was hoping I could keep my process simple and have NPM manage everything.