当前位置:网站首页>禾匠编译错误记录
禾匠编译错误记录
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]
边栏推荐
- [RYU] rest_router.py source code analysis
- 2022-08-02 mysql/stonedb slow SQL-Q18 - memory usage surge analysis
- The principle and use of AOSP CameraLatencyHistogram
- Golang Chapter 1: Getting Started
- Recognized by International Authorities | Yunzhuang Technology was selected in "RPA Global Market Pattern Report, Q3 2022"
- 网络基础学习系列四(网络层,数据链路层和一些其他重要协议或技术)
- BMN: Boundary-Matching Network for Temporal Action Proposal Generation阅读笔记
- Testng listener
- 易观分析:2022年Q2中国网络零售B2C市场交易规模达23444.7亿元
- Embedded Systems: Clocks
猜你喜欢
Another MySQL masterpiece published by Glacier (send the book at the end of the article)!!
3D 语义分割——2DPASS
[N1CTF 2018] eating_cms
override learning (parent and child)
LabVIEW代码生成错误 61056
Lift, Splat, Shoot: Encoding Images from Arbitrary Camera Rigs by Implicitly Unprojecting to 3D 论文笔记
Code Casual Recording Notes_Dynamic Programming_416 Segmentation and Subsetting
CAS:178744-28-0,mPEG-DSPE,DSPE-mPEG,甲氧基-聚乙二醇-磷脂酰乙醇胺供应
Pytest learn-setup/teardown
noip初赛
随机推荐
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
Kotlin - 扩展函数和运算符重载
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.
二叉搜索树解决落叶问题
为什么我们需要回调
Golang第一章:入门
Deep integration of OPC UA and IEC61499 (1)
代码随想录笔记_动态规划_416分割等和子集
Take an example of a web worker
utlis 线程池
"Digital Economy Panorama White Paper" Financial Digital User Chapter released!
Cloud platform construction solutions
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!
关于IDO预售系统开发技术讲解丨浅谈IDO预售合约系统开发原理分析
utlis thread pool
How many way of calling a function?
[MySQL Advanced] Creation and Management of Databases and Tables
工作小计 QT打包
First domestic open source framework 】 【 general cloud computing framework, any program can be made into cloud computing.
RPA power business automation super order!