当前位置:网站首页>使用HBuilder X编辑器安装终端窗口插件未响应的解决方案
使用HBuilder X编辑器安装终端窗口插件未响应的解决方案
2022-06-22 20:43:00 【马克社区】
一、打开HBuilder X根目录
依次找到main.js
HBuilderX \ plugins \ builtincef3terminal \ script \ main.js二、编辑main.js
将17到40行代码的powershell.exe跟cmd.exe都改为绝对路径。
下面为示例:
if(isWin){ shell = ‘C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe’; var osRelease = os.release(); var dotIndex = osRelease.indexOf(’.’); if(dotIndex>0){ var fv = osRelease.substring(0,dotIndex); if(fv>6){ shell = ‘C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe’; }else{ shell = ‘C:/Windows/WinSxS/wow64_microsoft-windows-commandprompt_31bf3856ad364e35_10.0.16299.15_none_b84d9d01bfe1be94/cmd.exe’; var ov = osRelease.substring(dotIndex); dotIndex = ov.indexOf(’.’); if(dotIndex>0){ var sv = ov.substring(0,dotIndex); if(sv>1){ shell = ‘C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe’;
更多内容请见原文,原文转载自:https://blog.csdn.net/weixin_44519496/article/details/119924214
边栏推荐
- 【ROS】ROSmsg cakin_make编译错误
- . Net 5.0 realizes the source code analysis of the oidc authentication part of single sign on through identityserver4
- 2021-08-22
- A group of K overturned linked lists [disassembly / overturning / assembly of linked lists]
- 组合总数[标准回溯 + 回溯技巧--降低栈深度]
- Cryptography series: certificate format representation of PKI X.509
- Lua-- use of data types, variables, loops, functions and operators
- Huawei cloud recruits partners in the field of industrial intelligence to provide strong support + commercial realization
- 2020-12-04
- AutoCAD - five annotation shortcuts
猜你喜欢

Adblock blocks Baidu hot search

【论文解读】关于基于视觉无人机自主降落平台的论文梳理

General trend wisdom to create inclined model and cut monomer

欧洲的龙之城|国家地理全球最浪漫最安全的目的地

2020-12-04

What are the indicators, dimensions and models in Business Intelligence BI data warehouse?
Mysql8 installation and environment configuration

The method of making videos of knowledge payment system support m3u8 format playback

【李沐】 如何读论文【论文精读】

What are the methods of software stress testing and how to select a software stress testing organization?
随机推荐
[recommended by Zhihu knowledge master] castle in UAV - focusing on the application of UAV in different technical fields
Enabling partners, major guarantee of Spring Festival "non-stop"
Greedy distribution problem (1)
shell(34) : 时间
Las point cloud create mesh
How much do you know about the cause of amplifier distortion?
In the middle of the year, we will promote the integration of worry free, and the value-added package will be reduced by 6
How to change the dial on the apple Watch
pycharm 配置远程连接服务器开发环境
Is it bad for NFT that the market starts to cool down?
Redis-分布式锁
The link added in the bottom menu cannot jump to the secondary page
[mavros] mavros startup Guide
Wechat applet batch submission for review
2020-12-04
2020-12-20
欧洲的龙之城|国家地理全球最浪漫最安全的目的地
A case of 94 SQL optimization (the writing method used is often rejected)
【路径规划】第一周: 路径规划 开源代码汇总(ROS) 版本
AtCoder abc256全题解(区间合并模板、矩阵快速幂优化dp、线段树……)