Only use ~ for npm versions