To fix npm – "Can’t find Python executable "python", you can set the PYTHON env variable." error with JavaScript, we install the window-build-tools
package.
To fix this, we run
npm install -g windows-build-tools
to install the window-build-tools
package globally which includes Python.