When building our node application, we are using .npm cache as follows:
npm install --cache /tmp/node-cache/.npm --pref