安装
- 从 F-Droid 获取 Termux。
- proot-distro安装Linux
pkg update -y && pkg install proot-distro -y && proot-distro install alpine && proot-distro login alpine
apk add sudo git nano
- 安装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
- 安装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】免费获取数百本计算机经典书籍
原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/188947
非原创文章文中已经注明原地址,如有侵权,联系删除
关注公众号【高性能架构探索】,第一时间获取最新文章
转载文章受原作者版权保护。转载请注明原作者出处!