
Mac
Siona_xin
既然选择了远方,便只顾风雨兼程!
展开
-
“xxx.app” is damaged and can’t be opened. You should move it to the Trash.
Apple M1 芯片软件打不开问题原创 2023-01-05 19:11:17 · 918 阅读 · 1 评论 -
MacOS 系统 VSCode 格式化 cpp 文件时配置左大括号不换行
格式化 cpp 文件时,发现左大括号是换行的,强迫症简直受不了o(╥﹏╥)o ,必须修改成不换行的‼️原创 2022-10-28 10:48:18 · 1323 阅读 · 0 评论 -
Mac 取消系统更新的红点——强迫症晚期患者
Mac关系自动更新以及小红点原创 2022-06-29 20:03:15 · 6390 阅读 · 4 评论 -
xcrun: error: active developer path (“/Applications/Xcode.app/Contents/Developer“) does not exist
一、问题描述卸载了Xcode或者升级Xcode,Clion 中的编译器 gcc 突然不好用了,然后尝试安装 gcc 时遇到了如下问题:xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist二、解决方案执行如下三步:sudo xcode-select -rsudo /usr/bin/xcode-select --switch /Library/Develop原创 2022-05-02 21:04:15 · 2018 阅读 · 0 评论 -
xcode-select: error: command line tools are already installed, use “Software Update“ to install
一、问题描述删除 XCode之后, 安装 gcc 时提示安装 Command Line Developer Tools 之后执行 xcode-select --install 出现以下报错:xcode-select: error: command line tools are already installed, use "Software Update" to install updates二、解决方案$ rm -rf /Library/Developer/CommandLineTools$原创 2022-05-02 20:48:00 · 7519 阅读 · 1 评论 -
Mac 关闭顽固的开机启动程序 Open at Login
一、问题描述使用 Stickies 标签时,设置了开机自启动,想关掉,发现 Open at Login 的 ✔️ 去不掉了,简直一度崩溃!!!二、解决方法打开 System Preferences (设置) → Users & Groups(用户和群组) → 选择 Login Items (登录选项卡),再解锁,最后删除开机启动的应用。...原创 2022-02-19 10:34:38 · 1745 阅读 · 0 评论 -
zsh 不兼容的坑-zsh:no matches found
一、问题描述在 zsh 下使用 find 以及 match 命令查找指定目录下所有头文件时出现问题:find . -name *.hno matches found: *.hxinna@sionas-MacBook-Air ~ % youtube-dl --list-formats https://www.youtube.com/watch?v=je_R3gEtDbwzsh: no matches found: https://www.youtube.com/watch?v=145611原创 2020-12-04 17:52:26 · 4747 阅读 · 0 评论 -
Mac IntelliJIDEA 反复卸载安装打不开的问题解决办法
问题描述今天,电脑上的 IntelliJIDEA 2019.3.1 突然不能用了,点击图标运行就会报错,后来网上搜到说从 Application -> 显示包内容 -> Contents -> MacOS -> 双击idea运行,但是也还是报错。之后,实在是没办法就重装了 IntelliJIDEA 2020.1 ,还是打不开!!!解决方案1、卸载 IntelliJI...原创 2020-04-21 09:30:22 · 3399 阅读 · 2 评论 -
ping 端口是否开放(Mac、Linux、Windows系统)
1、Mac 系统① ping 域名:ping 192.168.0.1 ② ping 端口:nc -vz -w 2 www.baidu.com 8001 2、Linux 系统① ping 域名:ping 192.168.0.1 ② ping 端口:telnet www.baidu.com 8001 3、Windows 系统① ping 域名:ping 192.16...原创 2020-04-01 14:02:29 · 2634 阅读 · 1 评论 -
Mac系统禁止Chrome浏览器更新
1、在终端输入如下命令cd ~/Library/Googlesudo chown root:wheel GoogleSoftwareUpdate2、打开 chrome://settings/help,看效果原创 2020-03-16 13:35:27 · 1534 阅读 · 1 评论 -
MAC-关于VMware虚拟机键盘鼠标失灵解决
问题:更新了Mac的新系统mojave,打开虚拟机发现登录界面连密码都输入不了。解决方案:在系统偏好设置里,辅助功能选项中给vm授权就行了。具体操作步骤如下:System Preferences --> Security&Privacy --> Privacy --> Accessibility.勾选☑️ VMware Fusion.app,然后重启VMwa...原创 2018-09-28 08:50:56 · 14104 阅读 · 8 评论 -
Mac安装git,使用时提示 cannot run git xcode-select: note: no developer tools were found, requesting install.
1. 苹果升级了系统到10.13,导致git不能使用,报以下错误no developer tools were found at ‘/Applications/Xcode.app’, requesting install. Choose an option in the dialog to download the command line developer t...原创 2018-09-10 09:39:34 · 22534 阅读 · 5 评论 -
Mac上的VSCode中格式化代码报错
因为VS代码默认情况下没有内置的代码格式化程序或美化程序,所以我很想看到一个更强大的带扩展名的VS代码。现在呢 我们可以在Visual Studio Marketplace上找到许多有用的扩展。最近我在Mac上编写了代码,并发现了扩展名Clang-Format来美化代码。我们来看一下如何在Mac上使用Visual Studio代码进行clang格式的工作。Clang-Format入门 要安装扩展名原创 2017-09-25 18:13:01 · 6971 阅读 · 1 评论 -
Mac下更新npm版本
1、运行下面的命令,查看npm可更新的版本:npm -g outdated2、更新对应的版本sudo npm -g install npm@5.4.2效果图如下:原创 2017-09-21 12:01:13 · 2578 阅读 · 0 评论 -
Mac下更新node版本
步骤如下:1、查看当前的node版本node -v2、清除npm当前缓存信息sudo npm cache clean -f3、执行下载nodesudo npm install -g n4、下载成功后执行安装sudo n stable5、最后查看更新之后的版本node -v原创 2017-10-09 11:04:12 · 2830 阅读 · 0 评论 -
Mac下查看node等的安装路径
只需要在命令行中输入一行命令即可。如下:which node结果如下:/usr/local/bin/node原创 2017-10-09 12:51:38 · 34208 阅读 · 3 评论 -
Mac下安装Puppeteer,并利用chromium浏览器生成截图
一、Puppeteer 简介1、Puppeteer单词本义Puppet 木偶,傀儡 Puppeteer操纵木偶的人软件工具Puppeteer是一个 node 库,他提供了一组用来操纵 Chrome 的API,允许通过JS代码操纵 Chrome 浏览器,完成数据爬取、Web程序自动测试等任务 官方网址:https://github.com/GoogleChrome/puppeteer 2、Pu原创 2017-10-09 14:24:53 · 13234 阅读 · 1 评论 -
mac执行git命令出现xcrun: error: invalid active developer path解决方法
mac执行git命令时候出现:xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun如图所示:解决方法:打开终端输入:xcode-select --inst原创 2017-11-30 21:13:50 · 1745 阅读 · 0 评论 -
Mac显示隐藏文件
方法一:第一步:打开「终端」应用程序。 第二步:输入如下命令: defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder 第三步:按下「Return」键确认。 现在你将会在 Finder 窗口中看到那些隐藏的文件和文件夹了。如果你想再次隐藏原本的隐藏文件和文件夹的话,将上述命令替...原创 2018-09-03 21:36:03 · 465 阅读 · 0 评论 -
Mac教程:如何删除.DS_Store文件且不再生
在 Mac OS X 系统下,几乎绝大部分文件夹中都包含 .DS_Store 隐藏文件,这里保存着针对这个目录的特殊信息和设置配置,例如查看方式、图标大小以及这个目录的一些附属元数据。我们需要打开终端窗口,并输入删除命令:sudo find / -name ".DS_Store" -depth -exec rm {} \;按下回车键盘之后,终端会提示用户名和密码,直接输入密码再按回...原创 2018-09-09 09:00:14 · 986 阅读 · 0 评论 -
Mac ln命令报错:Operation not permitted
在很多情况下Mac安装配置,都需要把路径映射到/usr/bin目录下。网上很多教程都是这样的,但是最近更新系统后,貌似都会报错:Operation not permitted。另一个方式是:映射到/usr/local/bin例如:sudo ln -s /usr/local/mysql/bin/mysql /usr/local/bin亲测可用 ^_^。原创 2017-09-25 16:52:29 · 32166 阅读 · 0 评论