Added a sync option for installing npm modules.