node-sass安装报错及其解决方案(三步解决法)
node-sass
:rainbow: Node.js bindings to libsass
项目地址:https://gitcode.com/gh_mirrors/no/node-sass
免费下载资源
·
1.报错情况
2.解决方案
一、本地安装的node和node-sass不匹配
//查看node版本
node -v
二、下载源在国外,更换中国镜像源
//更换淘宝镜像源
npm config set registry http://registry.npmmirror.com
三、单独安装node-sass
//按照需要的node-sass版本进行安装,此处是node的版本是14,node-sass是4.14.1
npm install node-sass@4.14.1
总结
1.按照node和node-sass版本对应表,安装正确的node版本
2.更换中国镜像源
3.单独安装指定版本的node-sass
今天是个雨天。
生活就像海洋,只有意志坚强的人,才能到达彼岸。——马克思
GitHub 加速计划 / no / node-sass
4
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> 10 个月前
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> 10 个月前
更多推荐
已为社区贡献1条内容
所有评论(0)