首页 > 其他分享 >homebrew:常用命令(Homebrew 4.0.10-119)

homebrew:常用命令(Homebrew 4.0.10-119)

时间:2023-04-01 13:24:33浏览次数:44  
标签:node 10 4.0 liuhongdi Pro brew 常用命令 liuhongdideMacBook Homebrew

一,brew常用的命令

1,查看brew下载文件的缓存目录
liuhongdi@liuhongdideMacBook-Pro Homebrew % brew --cache
/Users/liuhongdi/Library/Caches/Homebrew
2,查看brew的安装目录
liuhongdi@liuhongdideMacBook-Pro Homebrew % brew --prefix
/usr/local
也可以:
liuhongdi@liuhongdideMacBook-Pro poem % cd "$(brew --repo)"
liuhongdi@liuhongdideMacBook-Pro Homebrew % pwd
/usr/local/Homebrew
3,列出已安装的软件
liuhongdi@liuhongdideMacBook-Pro Homebrew % brew list       
==> Formulae
brotli c-ares ca-certificates icu4c libnghttp2 libuv node openssl@1.1
4,安装node
liuhongdi@liuhongdideMacBook-Pro Homebrew % brew install node
安装完成后查看版本:
liuhongdi@liuhongdideMacBook-Pro Homebrew % node -v
v19.8.1
5,查看已安装软件的信息:
liuhongdi@liuhongdideMacBook-Pro Homebrew % brew info node
==> node: stable 19.8.1 (bottled), HEAD
Platform built on V8 to build network applications
https://nodejs.org/
/usr/local/Cellar/node/19.8.1 (2,357 files, 56.7MB) *
  Poured from bottle using the formulae.brew.sh API on 2023-04-01 at 12:47:34
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/node.rb
License: MIT
==> Dependencies
Build: pkg-config ✘, python@3.11 ✘
Required: brotli ✔, c-ares ✔, icu4c ✔, libnghttp2 ✔, libuv ✔, openssl@1.1 ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 8,413 (30 days), 930,971 (90 days), 4,931,720 (365 days)
install-on-request: 7,695 (30 days), 815,366 (90 days), 4,361,602 (365 days)
build-error: 32 (30 days)
6,查看已安装软件的依赖:
liuhongdi@liuhongdideMacBook-Pro Homebrew % brew deps --installed --tree node
node
├── brotli
├── c-ares
├── icu4c
├── libnghttp2
├── libuv
└── openssl@1.1
    └── ca-certificates
7,卸载软件
liuhongdi@liuhongdideMacBook-Pro Homebrew % brew uninstall node
8,搜索:
liuhongdi@liuhongdideMacBook-Pro Homebrew % brew search node
==> Formulae
libbitcoin-node          llnode                   node-build               node@10                  node@14                  node@18                  nodebrew                 nodenv
linode-cli               node                     node-sass                node@12                  node@16                  node_exporter            nodeenv                  ode
==> Casks
capslocknodelay                                                     nodebox                                                             nodeclipse
If you meant "node" specifically:
It was migrated from homebrew/cask to homebrew/core.

说明:

「Formulae」:命令行工具、开发库、字体、插件等不含 GUI 界面的软件

「Cask」:含有 GUI 图形化界面的软件,如 Google Chrome、FireFox 、Atom 等

9,安装时指定版本:
liuhongdi@liuhongdideMacBook-Pro Homebrew % brew install node@18            
==> Downloading https://formulae.brew.sh/api/formula.jws.json
#=#=#                                                                        
==> Fetching node@18
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/node%4018-18.15.0.monterey.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring node@18-18.15.0.monterey.bottle.1.tar.gz
==> Caveats
node@18 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.
If you need to have node@18 first in your PATH, run:
  echo 'export PATH="/usr/local/opt/node@18/bin:$PATH"' >> ~/.zshrc
For compilers to find node@18 you may need to set:
  export LDFLAGS="-L/usr/local/opt/node@18/lib"
  export CPPFLAGS="-I/usr/local/opt/node@18/include"
==> Summary

标签:node,10,4.0,liuhongdi,Pro,brew,常用命令,liuhongdideMacBook,Homebrew
From: https://www.cnblogs.com/architectforest/p/17278459.html

相关文章

  • day10| 225.用队列实现栈;232.用栈实现队列
    题目简述: 请你仅使用两个队列实现一个后入先出(LIFO)的栈,并支持普通栈的全部四种操作(push、top、pop和empty)。实现MyStack类:voidpush(intx)将元素x压入栈顶。intpop()移除并返回栈顶元素。inttop()返回栈顶元素。booleanempty()如果栈是空的,返回true;否则,返回......
  • homebrew: 配置国内源(Homebrew 4.0.10-119)
    一,查看brew的安装目录:liuhongdi@liuhongdideMacBook-Propoem%cd"$(brew--repo)"liuhongdi@liuhongdideMacBook-ProHomebrew%pwd/usr/local/Homebrew说明:刘宏缔的架构森林是一个专注架构的博客,地址:https://www.cnblogs.com/architectforest     对应的源......
  • TOF方案在DW1000上的实现(四):DS-TWR方案
    说明在由DW1000芯片的制造原厂提供的示例代码中,同样提供了DS-TWR方案的实现示例:Example5a:double-sidedtwo-wayranging(DSTWR)initiatorExample5b:double-sidedtwo-wayrangingrespond该示例以C代码形式,演示了一个简单的双边双向测距的实现过程,本质上双边双向测距......
  • macos:安装homebrew( Homebrew 4.0.10-119 / macos 12.4)
    一,通过命令行安装:1,原版安装命令:会无法安装liuhongdi@liuhongdideMacBook-Propoem%/bin/bash-c"$(curl-fsSLhttps://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"curl:(7)Failedtoconnecttoraw.githubusercontent.comport443after45ms:......
  • PAT Basic 1059. C语言竞赛
    PATBasic1059.C语言竞赛1.题目描述:C语言竞赛是浙江大学计算机学院主持的一个欢乐的竞赛。既然竞赛主旨是为了好玩,颁奖规则也就制定得很滑稽:0、冠军将赢得一份“神秘大奖”(比如很巨大的一本学生研究论文集……)。1、排名为素数的学生将赢得最好的奖品——小黄人玩偶!2、......
  • STM32F1时钟比设置值慢了10倍
    解决问题正在开发一个双脉冲发生器,主控MCU用到了STM32F103RBT6,写入程序后发现原本设置的1000ms的延时不起作用,没有任何响应,起初还以为式程序卡死了,在代码上检查了一会儿,并没有发现明显的错误,抱着试试的想法把1000ms的延时改成了100ms,发现有相应的现象了,但是LED闪烁的频率明显是对......
  • PAT Basic 1058. 选择题
    PATBasic1058.选择题1.题目描述:批改多选题是比较麻烦的事情,本题就请你写个程序帮助老师批改多选题,并且指出哪道题错的人最多。2.输入格式:输入在第一行给出两个正整数N(≤ 1000)和M(≤ 100),分别是学生人数和多选题的个数。随后M行,每行顺次给出一道题的满分值(不超过5的......
  • x210-2023-04-01
    1、由于之前提到过使用的USB转网口虽然能用,但是在笔记本上会显示红叉,所以不能保证这个会不会给调试带来更多的不确定性,而且刚开始移植用的kernel是kernel.org的,所以在未开启以及添加对应的网络驱动之前,想要直接使用NFS去挂载根文件系统是不大现实的,所以只能选择ramdisk方式(因为ram......
  • x210-2023-03-31
    1、在参考网上的一些开启NFS文章时,发现有一个问题,就是他们在---NetworkFileSystems底下都有一个[]RootFilesystemonNFS,但是自己配置这里却没有,而且刚开始的时候也是弄不出来,然后去网上查了个遍,有说直接修改xxx_defconfig文件添加CONFIG_NFS_FS=y、CONFIG_IP_PNP=y的,可是加......
  • Linux:常用命令有哪些?
    查看文件查看文件属性:file 文件名查看内容全部内容:cat-n(可选,显示行号)文件名分页查看:less文件名文件尾部:tail文件名头部:head文件名新建文件夹mkdir......