以下是常见 Node.js 版本和 node-sass 版本的对应关系:

Node.js 版本 node-sass 版本
16.x 6.x
14.x 5.x
12.x 4.x
10.x 4.x

请注意,node-sass 的版本命名规则为 vX.Y.Z,其中 X 表示适用的 Node.js 主版本,Y 表示 node-sass 的主版本,Z 表示修订版本。因此,如果你的 Node.js 版本为 14.x,则应该安装 node-sass 的 5.x 版本。你可以使用以下命令安装对应版本的 node-sass:

npm install node-sass@5.x

如果你使用的是 nvm 管理 Node.js 版本,可以在安装完特定版本的 Node.js 后切换到该版本,然后安装对应版本的 node-sass。例如,如果你要安装 Node.js 14.x 和对应的 node-sass 5.x,可以执行以下命令:

nvm install 14
nvm use 14
npm install node-sass@5.x

这样就可以在 Node.js 14.x 的环境下使用 node-sass 5.x 了。

GitHub 加速计划 / no / node-sass
11
0
下载
:rainbow: Node.js bindings to libsass
最近提交(Master分支:4 个月前 )
6081731a Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> 1 年前
62c0f46c Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> 1 年前
Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐