Hi I have fixed the issue by my own here are the steps i reproduced
from terminal i move to my project directory and use this command
1, /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
2, echo >> /Users/zainishfaq/.zprofile
3, echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/zainishfaq/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)"
4, open .zshrc
5, Add the following in the zshrc file {export PATH=$HOME/development/flutter/bin:$PATH
export PATH=$HOME/.gem/bin:$PATH
export PATH="$PATH:$HOME/.rvm/bin" export PATH="/opt/homebrew/bin:$PATH"} 6, rvm get stable 7, rvm install 3.1.2