从git 代码搭建VSCode WEB
效果
步骤
前置 : git ,yarn
如何准备前置(自行sudo或su - root )
安装 gityum install git
安装 yarncurl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.repo
yum install yarn -y
yarn --version
yarn 换国内源yarn config set registry https://registry.npm.taobao.org/
检查 yarn 源yarn config get registry
github 获取代码gitclone--depth 1 https://github.com/microsoft/vscode.git
下载源码的时候加上一句--depth 1,意思就是只下载最近一次commit的代码。
node -v 检查版本 要求版本 "Please use node >=10 and <=12."
升级 node
先卸载yum remove nodejs
升级安装
第1步 - 添加Node.js Yum存储库
首先,您需要在Node.js官方网站提供的系统中启用node.js yum存储库。您还需要开发工具来构建要在系统上安装的本机加载项。
安装最新发布:$ yum clean all && yum mak