node-sass 安装报错解决办法


报错:

gyp verb check python checking for Python executable "python2" in the PATH

 

gyp verb check python checking for Python executable "python" in the PATH

 

解决办法:
主要是windows平台缺少编译环境,
1、先运行: npm install -g node-gyp
2、然后运行:运行 npm install --global --production windows-build-tools 可以自动安装跨平台的编译器:gym

 

 

参考:

https://blog.csdn.net/ty_0930/article/details/70184392


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM