diff --git a/DEV_FAQ.md b/DEV_FAQ.md index 2283dcf49e2c9..31d361c36e946 100644 --- a/DEV_FAQ.md +++ b/DEV_FAQ.md @@ -7,3 +7,21 @@ Here are the problems that are easy to encounter in development. ```bash pnpm i ``` + +## Link local dependencies + +```bash +# get dist +pnpm build +cd dist/element-plus +# set cur element-plus to global `node_modules` +pnpm link --global +# for esm we also need link element-plus for dist +pnpm link --global element-plus + +# go to your project, link to `element-plus` +cd your-project +pnpm link --global element-plus +``` + +> More info see [link | pnpm](https://pnpm.io/zh/cli/link).