node-sass安装报错的解决办法
来源:动视网
责编:小采
时间:2020-11-03 18:18:29
node-sass安装报错的解决办法
node-sass安装报错的解决办法:本篇文章介绍了node-sass安装报错的解决方法,希望对学习nodejs和sass的朋友有帮助!报错:gyp verb check python checking for Python executable "python2" in the PATHgyp verb check python check
导读node-sass安装报错的解决办法:本篇文章介绍了node-sass安装报错的解决方法,希望对学习nodejs和sass的朋友有帮助!报错:gyp verb check python checking for Python executable "python2" in the PATHgyp verb check python check

解决办法:
主要是windows平台缺少编译环境,
1、先运行: npm install -g node-gyp
2、然后运行:运行 npm install --global --production windows-build-tools 可以自动安装跨平台的编译器:gym
更多相关教程,请访问PHP中文网。
node-sass安装报错的解决办法
node-sass安装报错的解决办法:本篇文章介绍了node-sass安装报错的解决方法,希望对学习nodejs和sass的朋友有帮助!报错:gyp verb check python checking for Python executable "python2" in the PATHgyp verb check python check