npm ERR! gyp verb could not find “python2.7“. checking python launcher
因为node-sass需要调用操作系统的一些东西,所有需要环境的支持。提示需要安装python2.7环境,npm install --global windows-build-tools会自动下载python的,所以解决方案如下:
1.先删除node_modules 文件夹。
2.npm install --global windows-build-tools
3. npm install node-sass --save
如果遇到了Node Sass could not find a binding for your current environment这个问题,输入npm rebuild node-sass 命令来解决。