【发布时间】:2021-10-08 11:34:00
【问题描述】:
我正在尝试npm install Ubuntu 上的一个项目,但我收到了这个错误:
Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (93)
我在 Stack Overflow 上找到的解决方案是运行 npm rebuild node-sass,就像在这个线程中一样:
Node Sass does not yet support your current environment: Linux 64-bit with false
当我第一次尝试这个解决方案时,我得到了这个错误:
npm - “Can't find Python executable ”python“, you can set the PYTHON env variable.”
我找到的解决方案是从这里安装 Python 2.7:
Can't find Python executable "python"
现在当我运行 python --version 我得到:Python 2.7.18
所以我删除了 node_modules 文件夹和锁定文件,并再次运行 npm install,但它没有工作,现在我遇到了一个构建错误,你可以在这个 gist 中找到它:
https://gist.github.com/aimad-majdou/b99c5295b56fd5bc68492fa638d63018
我在 Mac OS 和 Windows 上安装这个项目从来没有遇到过问题,但这是我第一次尝试在 Ubuntu 上安装它。
我该如何解决这个问题?
【问题讨论】:
标签: node.js ubuntu npm yarnpkg node-sass