当前位置:网站首页>禾匠编译错误记录
禾匠编译错误记录
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]
边栏推荐
- How many way of calling a function?
- With the rise of concepts such as metaverse and web3.0, many digital forms such as digital people and digital scenes have begun to appear.
- Embedded Systems: Clocks
- FinClip最易用的智能电视小程序
- Boss: There are too many systems in the company, can you realize account interoperability?
- [RYU] rest_router.py source code analysis
- Websocket multi-threaded sending message error TEXT_PARTIAL_WRITING--Use case of spin lock replacing synchronized exclusive lock
- 完全二叉树问题
- [MySQL Advanced] Creation and Management of Databases and Tables
- utils timer
猜你喜欢
物联网新零售模式,引领购物新潮流
易观分析:2022年Q2中国网络零售B2C市场交易规模达23444.7亿元
redis持久化方式
On the Qixi Festival of 2022, I will offer 7 exquisite confession codes, and at the same time teach you to quickly change the source code for your own use
CAS:178744-28-0,mPEG-DSPE,DSPE-mPEG,甲氧基-聚乙二醇-磷脂酰乙醇胺供应
complete binary tree problem
[MySQL Advanced] Creation and Management of Databases and Tables
MiniAPI of .NET6 (14): Cross-domain CORS (Part 1)
[N1CTF 2018] eating_cms
软件测试内卷严重,如何提升自己的竞争力呢?
随机推荐
如何基于WPF写一款数据库文档管理工具(二)
ML's yellowbrick: A case of interpretability (threshold map) for LoR logistic regression model using yellowbrick based on whether Titanic was rescued or not based on the two-class prediction dataset
Deep integration of OPC UA and IEC61499 (1)
雅思大作文写作模版
Internet user account information management regulations come into effect today: must crack down on account trading and gray products
Recognized by International Authorities | Yunzhuang Technology was selected in "RPA Global Market Pattern Report, Q3 2022"
Binary search tree to solve the fallen leaves problem
Scala基础【正则表达式、框架式开发原则】
2022-08-02 mysql/stonedb慢SQL-Q18-内存使用暴涨分析
Diazo Biotin-PEG3-DBCO | Diazo Compound Modified Biotin-Tripolyethylene Glycol-Dibenzocyclooctyne
for loop exercises
redis持久化方式
How many way of calling a function?
What is memoization and what is it good for?
"Digital Economy Panorama White Paper" Financial Digital User Chapter released!
获国际权威认可 | 云扩科技入选《RPA全球市场格局报告,Q3 2022》
二叉搜索树解决落叶问题
使用tf.image.resize() 和tf.image.resize_with_pad()调整图像大小
静态文件快速建站
noip初赛