Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7404312
  • 博文数量: 1756
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 16232
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
个人简介

啥也没写

文章分类

全部博文(1756)

文章存档

2024年(2)

2023年(44)

2022年(39)

2021年(46)

2020年(43)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(228)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类: 系统运维

2021-01-20 11:47:23

修改第三方源
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

然后可以使用浏览器访问了
阅读(3896) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~