gyp verb check python checking for Python executable “python2“ in the PATH报错问题
看了网上好多方案都不行呀,尝试多天。(有说换源的,源404了。)
1.npm --python_mirror=https://registry.npmmirror.com/-/binary/python/ install --global windows-build-tools
运行这个命令,然后会下载到C:\Users\user.windows-build-tools目录下面,用powershell管理员身份打开这个路径,然后安装,安装了好久没反应,或者报错没关系,发现有了
C:\Users\user.windows-build-tools\python27这个路径。
然后,把这个添加到path系统环境变量中,记住重点来了,你的系统可能装了python3,把它移动到python3的上面。(下图的python27移动到上面!!!)
作者:danbing2226