Eclipse Theia安装

4240阅读 0评论2021-01-20 badb0y
分类:系统运维

修改第三方源
yarn config get registry
yarn config set registry ''
npm config get registry
npm config set registry ''

cat package.json 
{
  "name": "MyCoolIDE",
  "scripts": {
    "prepare": "yarn run clean && yarn build && yarn run download:plugins",
    "clean": "theia clean",
    "build": "theia build --mode development",
    "start": "theia start --plugins=local-dir:plugins",
    "download:plugins": "theia download:plugins"
  },
  "theiaPluginsDir": "plugins",
  "theiaPlugins": {
    "vscode-builtin-css": "",
    "vscode-builtin-html": "",
    "vscode-builtin-javascript": "",
    "vscode-builtin-json": "",
    "vscode-builtin-markdown": "",
    "vscode-builtin-python": "",
    "vscode-builtin-php": "",
    "vscode-builtin-rust":  "", 
    "vscode-builtin-ruby": "",
    "vscode-builtin-git": "",
    "vscode-builtin-git-ui": "",
    "vscode-builtin-go": "",
    "vscode-builtin-java": "" 
  },
  "dependencies": {
    "@theia/callhierarchy": "next",
    "@theia/file-search": "next",
    "@theia/git": "next",
    "@theia/markers": "next",
    "@theia/messages": "next",
    "@theia/mini-browser": "next",
    "@theia/navigator": "next",
    "@theia/outline-view": "next",
    "@theia/plugin-ext-vscode": "next",
    "@theia/preferences": "next",
    "@theia/preview": "next",
    "@theia/search-in-workspace": "next",
    "@theia/terminal": "next"
  },
  "devDependencies": {
    "@theia/cli": "next"
  }
}

进入目录 ,运行yarn进行安装
yarn start   #运行
yarn theia start --plugins=local-dir:plugins --hostname 0.0.0.0  #绑定IP

然后可以使用浏览器访问了
上一篇:istio1.8.1部署bookinfo应用
下一篇:curl支持http3