Use ~ instead of ^ operator for version locking