前言
具体报错信息:Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (93)
一、原因
这个错误提示意味着你的环境不支持 Node Sass。这通常是因为你的 Node.js 版本太新而导致的。
二、使用步骤
Node Sass 依赖于 libsass 库,而 libsass 又依赖于 Python 环境。因此,如果你的系统中没有安装 Python 环境,就会出现这个错误。
你可以按照以下步骤来安装 Python 环境:
访问 Python 官网(https://www.python.org/downloads/)下载最新版本的 Python。
安装 Python。在安装过程中,请确保勾选“Add Python to PATH”选项,以便在命令行中使用 Python。
在命令行中运行以下命令,以确保 Python 安装成功:
python --version
如果成功安装,你应该能够看到 Python 的版本号。
在你的项目根目录下运行以下命令,以重新安装 Node Sass:
npm rebuild node-sass