话不多刷,看操作
第一步:确认系统是否安装python,若没有,尝试安装python27,设置环境变量
Python下载地址: Python下载地址: Python Release Python 2.7.18 | Python.org
设置环境变量:Python 环境搭建 | 菜鸟教程
是否解决?未解决看下面第二步


第二步:继续看错误信息,提示并没有使用VS2017,我下意识考虑是否可能存在编译器环境版本兼容的影响,后来一想,提示的无疑是废话,现在版本向下兼容基本可以排除此问题的可能性。


所以接着看下面的错误信息,msbuild.exe微软构建器在构建的时候失败了,那么:

单独安装微软构建器msbuild.exe的话,可能还会存在后续问题,所以这里建议安装包含环境集合的安装跨平台的构建工具: npm install --global --production windows-build-tools
此工具包含:
1. Visual C++ 编译器(针对 x86、X64 和 ARM)
2. Visual C++ 头文件和库(CRT 和 STL)
3. Visual C++ 构建脚本(针对 Windows 桌面)
4. 微软构建工具 2017 (MSBuild)
5. Windows SDK 10(可选,默认开启)
6. ATL 和 MFC(可选,默认开启)
7. C++ 构建工具特定的命令提示
安装效果如图:

最后卸载 node-sass 并重新安装,执行命令:
npm uninstall node-sass
npm install node-sass
问题完美解决
:rainbow: Node.js bindings to libsass
最近提交(Master分支:3 个月前 )
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 年前
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
所有评论(0)