当前位置:网站首页>禾匠编译错误记录
禾匠编译错误记录
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]边栏推荐
- 亿流量大考(2):开发一套高容错分布式系统
- Golang第二章:程序结构
- ML之yellowbrick:基于titanic泰坦尼克是否获救二分类预测数据集利用yellowbrick对LoR逻辑回归模型实现可解释性(阈值图)案例
- 【day1】
- 代码随想录笔记_动态规划_416分割等和子集
- Cisco ike2 IPSec configuration
- pikachu Over permission
- Fluorescein-PEG-CLS,胆固醇-聚乙二醇-荧光素科研试剂
- utlis thread pool
- Analysys Analysis: The transaction scale of China's online retail B2C market in Q2 2022 will reach 2,344.47 billion yuan
猜你喜欢

FinClip最易用的智能电视小程序

【MySQL进阶】数据库与表的创建和管理

Zilliz 2023 秋季校园招聘正式启动!

noip preliminary round

Code Casual Recording Notes_Dynamic Programming_416 Segmentation and Subsetting

Bytebase database schema change management tool

Embedded Systems: GPIO

Gains double award | know micro easily won the "2021 China digital twin solution suppliers in excellence" "made in China's smart excellent recommended products" double award!

.NET6之MiniAPI(十四):跨域CORS(上)

Conditional Statements for Shell Programming
随机推荐
【MySQL进阶】数据库与表的创建和管理
override learning (parent and child)
Zilliz 2023 秋季校园招聘正式启动!
First domestic open source framework 】 【 general cloud computing framework, any program can be made into cloud computing.
AOSP CameraLatencyHistogram的原理与使用
伴随着元宇宙、web3.0等概念的兴起,数字人、数字场景等诸多数字化的形态开始出现
PowerMockup 4.3.4::::Crack
log4j-slf4j-impl cannot be present with log4j-to-slf4j
Nine ways to teach you to read the file path in the resources directory
Create function report error, prompting DECLARE definition syntax problem
UVa 10003 - Cutting Sticks(白书,区间DP)
Websocket multi-threaded sending message error TEXT_PARTIAL_WRITING--Use case of spin lock replacing synchronized exclusive lock
【开源框架】国内首个通用云计算框架,任意程序都可做成云计算。
3D 语义分割——2DPASS
Bytebase database schema change management tool
软件测试内卷严重,如何提升自己的竞争力呢?
Software testing is seriously involution, how to improve your competitiveness?
Golang第二章:程序结构
HCIP BGP实验报告
冰河又一MySQL力作出版(文末送书)!!