当前位置:网站首页>禾匠编译错误记录
禾匠编译错误记录
2022-08-03 22:53:00 【闵晓天】
安装:node-sass 提示 MSB4132: 无法识别工具版本“2.0”。可用的工具版本为 “4.0”
错误描述1:
在win10 64位系统下,关于nodejs下通过npm install环境部署项目时出现报错’MSBUILD : error MSB4132: 无法识别工具版本“2.0”。可用的工具版本为 “4.0”。’的解决办法
解决:
1、搜索Windows PowerShell或CMD,然后右键“以管理员身份运行”,执行npm install --global --production windows-build-tools
2、如果没有手动安装过Python则在上面一步自动安装Python后可能需要手动配置一下环境变量,Windows PowerShell或CMD中执行npm config set python python2.7
3、重新设置该项目的msvs版本,同样Windows PowerShell或CMD中执行npm config set msvs_version 2017,或者全局的话加个-g。
4、再在项目中运行npm install,可能会出现很多警告,但是这些可以忽略的。
错误2:
安装 windows-build-tools 时一直卡在

- 在资源管理器中粘贴
%temp%打开Windows temp目录 - 创建一个名为
dd_client_.log的文件 - 写入
Closing installer. Return code: 3010.然后保存文件 - 然后 windows-build-tools 就自动继续安装
安装完成执行
npm install [email protected]边栏推荐
- 【论文阅读】TRO 2021: Fail-Safe Motion Planning for Online Verification of Autonomous Vehicles Using Conve
- Golang第二章:程序结构
- Live Preview | Build Business Intelligence, Quickly Embrace Financial Digital Transformation
- Another MySQL masterpiece published by Glacier (send the book at the end of the article)!!
- BMN: Boundary-Matching Network for Temporal Action Proposal Generation阅读笔记
- Embedded systems: overview
- The salary of soft testers at each stage, come to Kangkang, how much can you get?
- Canvas App中点击图标生成PDF并保存到Dataverse中
- HCIP BGP实验报告
- Quickly build a website with static files
猜你喜欢
随机推荐
易观分析:2022年Q2中国网络零售B2C市场交易规模达23444.7亿元
The sword refers to the offer question 22 - the Kth node from the bottom in the linked list
Take an example of a web worker
Storage engine written by golang, based on b+ tree, mmap
Network basic learning series four (network layer, data link layer and some other important protocols or technologies)
Zilliz 2023 秋季校园招聘正式启动!
冰河又一MySQL力作出版(文末送书)!!
举一个 web worker 的例子
亿流量大考(2):开发一套高容错分布式系统
Kotlin - extension functions and operator overloading
直播预告 | 构建业务智联,快速拥抱财务数字化转型
UVa 437 - The Tower of Babylon (White Book)
noip初赛
Testng监听器
log4j-slf4j-impl cannot be present with log4j-to-slf4j
最小化安装debian11
Code Casual Recording Notes_Dynamic Programming_416 Segmentation and Subsetting
How many way of calling a function?
2022-08-03 oracle执行慢SQL-Q17对比
Scala基础【正则表达式、框架式开发原则】









