在windows下安装node-sass失败,提示\node-sass: Command failed,
node-sass
:rainbow: Node.js bindings to libsass
项目地址:https://gitcode.com/gh_mirrors/no/node-sass
免费下载资源
·
1、
2、3、
上面这些问题我都遇到过!!!!!我当时试了好多种(我安装了java以为是环境错了,还把path和node重新装了一遍)
我的错误是jeecg,然后用yarn 安装时候报错!!!!!1我把yarn.lock删除后好的,
我真的是吐了,网上也有些方法可以看看
使用yarn暗转时,报如上错误,可能原因:
1.没有安装python,先执行:
npm install -g node-gyp (编译环境)
npm install --global --production windows-build-tools
2.如果依然报错,如下执行:
npm install -g mirror-config-china --registry=http://registry.npm.taobao.org
npm install node-sass
yarn install
3、有可能被墙了,这个时候我们不妨换个源试试
yarn config set registry https://registry.npm.taobao.org/ 通过该命令设置yarn的下载源
最后执行一下命令安装成功
pm i node-sass@4.7.2 -D --registry=https://registry.npm.taobao.org
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 个月前
更多推荐
已为社区贡献3条内容
所有评论(0)