修改第三方源
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
然后可以使用浏览器访问了
阅读(4079) | 评论(0) | 转发(0) |