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

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

        • 错误原因:
        • 方式一:
        • 方式二:

错误原因:

Node.js 在安装模块的时候报错,缺少python环境。解决方式:

方式一:

安装Python及环境变量配置,Python安装python2.7

方式二:

执行命令: ·npm install --global --production windows-build-tools·

你可能感兴趣的:(npm)