错误 1
Can’t find Python executable “python2.7”
没有安装 Python 2.7
错误 2
Can’t find Python executable “python”, you can set the PYTHON env variable.
以管理员身份运行 cmd,输入命令
npm install --global --production windows-build-tools
安装完成后
错误 3
Visual Studio 看到错误消息“另一个安装程序已开始运行。请先等它完成,然后再重试。”
稍等 windows-build-tools 安装完成
错误 4
Failed at the
[email protected]
postinstall script.
使用 cnpm 安装 node-sass 解决
cnpm install node-sass
错误 5
sass-loader
requiresnode-sass
>=4
npm install node-sass@latest