npm cannot find Python executable python

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sz85850597/article/details/84865504

描述

执行npm install时报错:

gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.

解决

npm --add-python-to-path='true' --debug install --global windows-build-tools

猜你喜欢

转载自blog.csdn.net/sz85850597/article/details/84865504