redesign the cases when install a package; related to cortexjs/cortex#443