Errors Screenshots
First screenshot
Second Screenshot
Third Screenshot
Fourth Screenshot
When the command ng new <PROJECT_NAME>
is run on the google drive file stream then the above errors are shown, however, no error is shown when the project is created locally and not on the google drive (using file stream on laptop).
Everything is installed correctly i.e. nodejs , npm & angular CLI are installed properly without any fault. (Checked two times before writing this question).
Edit: The solution to the problem is to shift the codebase to local instead of doing it on google drive and if you want to use google drive then don't make the git repository.