Termux中安装code-server

安装

  1. 从 F-Droid 获取 Termux。
  2. proot-distro安装Linux
pkg update -y && pkg install proot-distro -y && proot-distro install alpine && proot-distro login alpine

apk add sudo git nano
  1. 安装NPM
    VScode列出了 Node.js版本要求,使用其他版本的 Node.js可能会导致意外行为。
  • NVM 来安装NPM
    详情参考NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
or
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
  • 自定义安装
apk add alpine-sdk bash libstdc++ libc6-compat
apk add --update nodejs npm
npm config set python python3
  1. 安装code-server
    详情参考NPM
安装预览过程:
curl -fsSL https://code-server.dev/install.sh | sh -s -- --dry-run
直接安装
curl -fsSL https://code-server.dev/install.sh | sh

npm install -g code-server --unsafe-perm

失败 换Debian!!!

原文链接: https://www.cnblogs.com/KylinBlog/p/16206397.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

    Termux中安装code-server

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/188947

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月12日 下午2:31
下一篇 2023年2月12日 下午2:32

相关推荐