[go: nahoru, domu]

Skip to content

Commit

Permalink
chore: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaaaash committed Mar 1, 2022
1 parent 9d8f9d8 commit db396c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
$ npm config set registry https://registry.npmmirror.com
```

> 如果你使用 npm@^7 及以上版本,请使用 npm install --legacy-peer-deps
由于 `canvas` 依赖 GitHub Release 资源,在国内网络环境下极易超时,故安装依赖时请加上对应的镜像地址如下:

```bash
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ A framework helps you quickly build Cloud or Desktop IDE products.

English | [简体中文](./README-zh_CN.md)

## Quickstart
## Quick start

> if you are using npm@^7 or higher,please use npm install --legacy-peer-deps
```bash
$ npm install
Expand Down
2 changes: 2 additions & 0 deletions tools/dev-tool/src/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ threadLoader.warmup({}, ['ts-loader']);
const utils = require('./utils');

const reactPath = path.resolve(path.join(__dirname, '../../../node_modules/react'));
const reactDOMPath = path.resolve(path.join(__dirname, '../../../node_modules/react-dom'));
const tsConfigPath = path.join(__dirname, '../../../tsconfig.json');
const HOST = process.env.HOST || '127.0.0.1';
const PORT = process.env.IDE_FRONT_PORT || 8080;
Expand Down Expand Up @@ -50,6 +51,7 @@ exports.createWebpackConfig = function (dir, entry, extraConfig) {
],
alias: {
react: reactPath,
'react-dom': reactDOMPath,
},
},
bail: true,
Expand Down

0 comments on commit db396c2

Please sign in to comment.