python.exe Syntax issue - NPM
Two solution we can try in this case
Downgrade Python to
2.x.
Install the packages using
npm install --ignore-scripts
NOTE: This will cause npm to stop running scripts defined in the package.json
The command you are attempting to run uses Python 2 syntax. It is incompatible with Python 3, so if you try to use that, you should get a syntax error.
Either upgrade the script to Python 3 (about time already), or fix the execution path so that it can be run with the obsolescent Python version.