npm - gyp verb check python checking for Python executable “python2“ in the PATH

前言

    今天荡下来的项目在执行 npm i 的时候报错:
gyp verb check python checking for Python executable “python2” in the PATH

解决方法

    1、查看是否有python环境,没有的话下载安装python2.x

    2、如果安装了python,查看是否配置环境变量

    3、还是不行的话,用管理员方式打开cmd或者是powershell,执行:

npm install --global --production windows-build-tools

猜你喜欢

转载自blog.csdn.net/idomyway/article/details/115803543
今日推荐