vue创建项目时和使用npm install安装node-sass时报错Can't find Python executable python you can set the PYTHON env variable
保错如下图
解决方法
以管理员方式打开PowerShell
执行
npm install --global --production windows-build-tools
用管理员方式打开PowerShell
千万不要在cmd中打开
在此之前还需要执行一个操作,如下:
PowerShell签名和执行策略
描述 Windows PowerShell 执行策略,以及如何使用和更改它们