本篇文章介绍了node-sass安装报错的解决方法,希望对学习nodejs和sass的朋友有帮助!
报错:
gyp verb check python checking for Python executable "python2" in the PATHgyp 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
更多相关教程,请访问PHP中文网。
以上就是node-sass安装报错的解决办法的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号