npm install Error: stack Error: Can’t find Python executable “python”

NPM install Error: stack Error: Can’t find Python “Python” executable
Because of the need for node-gyp installation, it can only support python2, the official recommendation is python2.7, the download link
after the installation is complete, set the environment variable PYTHONPATH (value is the installation directory, such as C:\Python27) and PYTHON (value is %PYTHONPATH%\python.exe)
and then set it in the terminal: NPM config set python “C:\Python27\python.exe”
problem solved


Read More: