Windows 下安装 Bun:像 Node 或 Deno 一样的现代 JavaScript 运行时

 安装解压软件:

sudo apt-get install unzip

 安装bun:

curl -fsSL https://bun.sh/install | bash

 

 

 跳转到root文件夹

无权限的解决办法:

chmod 777 /root/

打开.bashrc文件

vim .bashrc

输入i   进入编辑模式

在末尾处添加:

  export BUN_INSTALL="$HOME/.bun"
  export PATH="$BUN_INSTALL/bin:$PATH"

按esc按钮-》输入:wq保存退出

 系统不支持:

 升级ubuntu后:

 http.js:

// http.js
export default {
  port: 3000,
  fetch(request) {
    return new Response("Welcome to Bun!");
  },
};

 

 

参考链接:

https://blog.csdn.net/u013014254/article/details/125721140

https://lwebapp.com/zh/post/bun-windows

https://github.com/oven-sh/bun#bun-install

https://www.cnblogs.com/chenyirong/p/16342370.html

https://blog.csdn.net/carefree2005/article/details/117559312

http://ftp.gnu.org/pub/gnu/glibc/ 

https://blog.csdn.net/qq_37858386/article/details/109031071

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

徐同保

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值