exclude git protocol, and regenerate package.json.