My group works on a library that's distributed to other teams in our organization to use in their own projects. We recently introduced interactive examples, created in JS Bin, to our online documentation.
I've installed JS Bin globally to the server hosting our documentation using npm.
c:\npm install -g jsbin
However this installs jsbin to
c:\Users\<my user>\AppData\Roaming\npm\node_modules
Which isn't really what I want, because other developers will need to be able to start and stop this process. At first I was surprised that Node would install something in my own directory that I'd specified as "global," but then I read:
"-g is not a way to install global libraries, it's only a way to place them on system path so you can call them from command line without writing the full path to them" -- found that here: Nodejs cannot find installed module on Windows?
OK, fine. So what's the best way to install an npm module when it contains an executable that will be used by any number of users on the system? They'll all have admin privileges, but making people log in as administrator just to start or stop a process doesn't seem right.
Installation specifics:
- Node version:
0.10.28
- NPM version:
1.4.9
- Node installation directory:
C:\Program Files\nodejs
Your input is appreciated, and thank you in advance.