diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000000..9cf9495031 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +package-lock=false \ No newline at end of file diff --git a/docs/react/contributing.en-US.md b/docs/react/contributing.en-US.md index 09b1db205f..69c07dc68c 100644 --- a/docs/react/contributing.en-US.md +++ b/docs/react/contributing.en-US.md @@ -62,6 +62,12 @@ Since antd's components are based on react-component, sometimes you may need to ## Development Workflow +Before you can start you must run the following command to enable [corepack](https://nodejs.org/api/corepack.html)。 + +```bash +corepack enable +``` + After cloning antd, run `npm install` to fetch its dependencies. Then, you can run several commands: 1. `npm start` runs Ant Design website locally. diff --git a/docs/react/contributing.zh-CN.md b/docs/react/contributing.zh-CN.md index 46e5accf5f..ebf7e53882 100644 --- a/docs/react/contributing.zh-CN.md +++ b/docs/react/contributing.zh-CN.md @@ -62,6 +62,12 @@ Ant Design 团队会关注所有的 pull request,我们会 review 以及合并 ## 开发流程 +在开始之前,请先执行下面的命令启用 [corepack](https://nodejs.org/api/corepack.html)。 + +```bash +corepack enable +``` + 在你 clone 了 antd 的代码并且使用 `npm install` 安装完依赖后,你还可以运行下面几个常用的命令: 1. `npm start` 在本地运行 Ant Design 的网站。 diff --git a/package.json b/package.json index 2e1375bddc..f56e7ed3f6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "antd", "version": "5.5.1", + "packageManager": "^npm@9.0.0", "description": "An enterprise-class UI design language and React components implementation", "title": "Ant Design", "keywords": [