python - Node-Sass即使安装也找不到python

标签 python node.js node-sass

因此,当我为应用程序运行 npm install node-sass 时,出现以下错误: enter image description here 找到完整日志 here :

我已经安装了python,并且它说找不到python的路径,它已经安装了。我什至添加了环境变量:

enter image description here

enter image description here

最佳答案

在安装模块之前尝试运行此命令

npm install --global --production windows-build-tools

关于python - Node-Sass即使安装也找不到python,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47955763/

相关文章:

node.js - 自定义错误未在 throw 语句或 next() 调用上正确传播

css - Node-SASS 编译器失败 - CSS 无效

javascript - promise : how to pass function with parameters?

python - 艰难地学习 Python 练习 39

python - Flask Sql-alchemy 不会删除 alembic 创建的表

javascript - JavaScript 文件的变色龙模板?

node.js - 套接字.io : how to control & check the message flow?

node.js - 无法在我的 React 项目中使用 npm 添加 node-sass 我正在我的 mac 上进行开发

webpack - SCSS : concat files but not compile

python - 如何获取元组列表并将元组从字符串更改为整数