allow optional install of npm package

We have a custom nodejs package built that includes npm (and isn't Ubuntu) and so need to not attempt to install the npm package.  Moved the ubuntu conditional to params, defaults for all OSes remains the same.