Execute npm install --production when package has dependencies.