Bun
下载地址
bash
https://github.com/oven-sh/bun/releases/download/bun-v1.3.13/bun-windows-x64.zip
https://github.com/oven-sh/bun/releases/download/bun-v1.3.13/bun-linux-x64.zip
https://github.com/oven-sh/bun/releases/download/bun-v1.3.13/bun-darwin-x64.zip安装
Windows
设置环境变量
shell
setx BUN_HOME "D:\Tools\Node\bun"RHEL
bash
#
mkdir -p /data/tools/node/bun
# 解压缩
tar -Jxvf bun-linux-x64.zip
mv ./bun-linux-x64/** /data/tools/node/bun
rm -rf ./bun-linux-x64添加环境变量
bash
vi /etc/profile.d/bun.sh添加一下内容
bash
# 环境变量
export BUN_HOME=/data/tools/node/bun
export PATH=$PATH:$BUN_HOME/bin:.启用环境变量
bash
source /etc/profile检查是否成功安装
bash
bun -v