How to use npm install dependence for other platform

For example, I am using OS X now, but I want to build a node_modules for Linux.