Mac相关问题

  • Mac 更新node版本

    第一步,先查看本机node.js版本:

    javascript 复制代码
    node -v
  • 第二步,清除node.js的cache:

    bash 复制代码
    sudo npm cache clean -f

    第三步,安装 n 工具,这个工具是专门用来管理node.js版本的,别怀疑这个工具的名字,是他是他就是他,他的名字就是 "n"

    bash 复制代码
    sudo npm install -g n

    第四步,安装最新版本的node.js

    bash 复制代码
    sudo n stable

    第五步,再次查看本机的node.js版本:

    bash 复制代码
    node -v

    第六步,更新npm到最新版:

    bash 复制代码
    sudo npm install npm@latest -g

    第七步,验证

    复制代码
    node -v
    npm -v

Mac 升级系统后使用git

报错信息

bash 复制代码
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
bash 复制代码
chaoyang@192 ~ % xcode-select --install
安装的大概几分钟-
相关推荐
2501_9160088910 小时前
移动安全之 APP 加固,保障移动应用安全的重要手段
安全·macos·ios·小程序·uni-app·iphone·xcode
艾莉丝努力练剑16 小时前
Mac 远程桌面体验:6 个工具的 macOS 适配情况整理
linux·运维·服务器·macos·面试
YH55269841 天前
MacBook Air M4 和 M5 怎么选?
macos
MoSTChillax1 天前
数字人竞品分析(中):核心功能、产品使用与技术能力对比
ide·macos·xcode
码农阿豪2 天前
【金仓数据库征文】Mac开发环境|SpringBoot3 + MyBatisPlus对接KES V9 Docker实战全指南
数据库·macos·docker
赶路人儿3 天前
MacOS 下实现 AI 操控电脑(Computer Use)的思考
人工智能·macos·策略模式
天空'之城3 天前
VMware17.5.0安装macOS13.7.8|Xcode15.0.1+Qt6.5.3开发环境搭建完整教程
macos·虚拟机·vmware tools
00后程序员张3 天前
使用Instruments工具深入分析iOS应用性能与启动时间优化
android·macos·ios·小程序·uni-app·cocoa·iphone
2601_960906723 天前
AI研发加速中式及泛亚洲
人工智能·vscode·macos·sublime text·phpstorm
sg_knight3 天前
Codex CLI 安装全攻略:macOS / Linux / Windows(WSL2)三端实战
linux·windows·macos·openai·ai编程·coding·codex