node-sass报错解决 16.15版本和14.19版本
node-sass
:rainbow: Node.js bindings to libsass
项目地址:https://gitcode.com/gh_mirrors/no/node-sass
免费下载资源
·
node-sass和sass-loader是我们常遇到的前端报错,原因只是node与node-sass的版本不匹配
解决方案
安装node-sass报错,原因node的版本不匹配,替换package.json中的node-sass和sass-loader的版本
如果不知道自己node版本,可以先在终端使用node -v 查看版本
实践不报错版本
node版本
v16.15.0
"node-sass": "^6.0.1",
"sass-loader": "^10.2.0"
node版本
v14.19.0
"node-sass": "^4.14.1",
"sass-loader": "^7.3.1"
这里是各个版本的node-sass的对照表,仅供参考
GitHub 加速计划 / no / node-sass
8.5 K
1.33 K
下载
:rainbow: Node.js bindings to libsass
最近提交(Master分支:2 个月前 )
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> 9 个月前
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> 9 个月前
更多推荐
已为社区贡献2条内容
所有评论(0)