当前位置:网站首页>禾匠编译错误记录
禾匠编译错误记录
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]
边栏推荐
- SPOJ 2774 Longest Common Substring(两串求公共子串 SAM)
- Golang Chapter 2: Program Structure
- rosbridge-WSL2 && carla-win11
- Conditional Statements for Shell Programming
- Unity2021发布WebGL雾效消失问题
- The sword refers to the offer question 22 - the Kth node from the bottom in the linked list
- Boss: There are too many systems in the company, can you realize account interoperability?
- log4j-slf4j-impl cannot be present with log4j-to-slf4j
- 图的基础概念
- IELTS essay writing template
猜你喜欢
软件测试内卷严重,如何提升自己的竞争力呢?
电商秒杀系统
2022-08-02 mysql/stonedb慢SQL-Q18-内存使用暴涨分析
Interpretation of ML: A case of global interpretation/local interpretation of EBC model interpretability based on titanic titanic rescued binary prediction data set using interpret
藏宝计划TreasureProject(TPC)系统模式开发技术原理
End-to-End Lane Marker Detection via Row-wise Classification
【bug】汇总Elipse项目中代码中文乱码解决方法!
What is the difference between the generator version and the viewer version?
Boss: There are too many systems in the company, can you realize account interoperability?
Bytebase database schema change management tool
随机推荐
Embedded Systems: Clocks
The sword refers to the offer question 22 - the Kth node from the bottom in the linked list
How to write a database document management tool based on WPF (2)
Golang第一章:入门
override学习(父类和子类)
Pytest学习-setup/teardown
七夕活动浪漫上线,别让网络拖慢和小姐姐的开黑时间
LabVIEW代码生成错误 61056
UVa 437 - The Tower of Babylon (White Book)
OPC UA 与IEC61499 深度融合(1)
Summary bug 】 【 Elipse garbled solution project code in Chinese!
Create function report error, prompting DECLARE definition syntax problem
二叉搜索树解决落叶问题
V8中的快慢数组(附源码、图文更易理解)
[RYU] rest_router.py source code analysis
First domestic open source framework 】 【 general cloud computing framework, any program can be made into cloud computing.
Bytebase database schema change management tool
utlis 线程池
BMN: Boundary-Matching Network for Temporal Action Proposal Generation Reading Notes
Testng listener