node-sass安装出错,可以先查看本机binding.node文件环境是否不对

node -p “[process.platform, process.arch, process.versions.modules].join(’-’)”

查看本机需要的binding.node文件命令

然后会出来如win32-x64-83 ,下载binding.node结尾的文件,然后放在一个比较稳定不会删除的文件夹中
,然后配置电脑环境变量中的系统变量 ,我在D盘新建了一个文件夹 bindingNode,配置值如下

变量名:SASS_BINARY_PATH
变量值:D:\bindingNode\win32-x64-83_binding.node

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 个月前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐