I am trying to npm install for a project in my mac but for some reason it says python not found even though python3 command is working fine and I also set alias python to python3 in by ~/.zshrc and ~/.bash-profile and restarted several times but still the same issue.
Screenshot of the issue.

npm config set python C:\Library\Python\Python310\python.exevia administratorstack Error: Command failed: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 -c import sys; print "%s.%s.%s" % sys.version_info[:3];