gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
出现上面图中问题,解决办法,打开终端(管理员模式),输入下面的内容:
安装node-sass
npm install node-sass --save-dev
安装完成后继续执行下面的命令:
npm install --global --production windows-build-tools
否则会提示:
Please restart thie script from a administrative PowerShell!
再输入:
npm install --global node-gyp