解决npm i报错Error: Can't find Python executable "python", you can set the PYTHON env variable.

问题描述

gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (C:\Users\lslupingy\Desktop\vue-form-making-master\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Users\lslupingy\Desktop\vue-form-making-master\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack     at callback (C:\Users\lslupingy\Desktop\vue-form-making-master\node_modules\graceful-fs\polyfills.js:295:20)
gyp ERR! stack     at FSReqCallback.oncomplete (fs.js:158:21)
gyp ERR! System Windows_NT 10.0.17763

解决方法

管理员身份运行命令行,执行如下命令:

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

你可能感兴趣的:(7788的笔记)