简体   繁体   English

Node-sass 版本兼容

[英]Node-sass version compatible

I am using 4.14.1 in my project and with node 14. I need to know which version of python is needed to run node-gyp.我在我的项目和节点 14 中使用 4.14.1。我需要知道运行 node-gyp 需要哪个版本的 python。

I also went through the repo link https://www.npmjs.com/package/node-sass我还通过了回购链接https://www.npmjs.com/package/node-sass

But not able to find the details of python version.但无法找到 python 版本的详细信息。

Thanks for the help.谢谢您的帮助。

Change it to sass and remove node-sass将其更改为 sass 并删除 node-sass

Solution解决方案

Install and use sass instead of node-sass .安装并使用sass而不是node-sass Because node-sass is now deprecated.因为现在不推荐使用node-sass

npm uninstall node-sass
npm install sass

It works all the same (no additional changes needed)它的工作原理完全相同(无需额外更改)

node-gyp requires Python version 2.7, 3.5, or 3.6 to be installed on your system in order to run properly. node-gyp 需要在您的系统上安装 Python 版本 2.7、3.5 或 3.6 才能正常运行。 It is recommended to use the version that is most commonly installed on your system, which is usually 2.7.建议使用系统上最常安装的版本,通常是 2.7。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM