How to link a local npm dependency with pnpm
Krzysztof Żuraw

Krzysztof Żuraw @kzuraw

About: TypeScript & React + V60

Location:
Wrocław
Joined:
Oct 20, 2017

How to link a local npm dependency with pnpm

Publish Date: Aug 13 '23
0 0

I have learned how to correctly link a local npm dependency when using pnpm. Here is the process:

  1. Execute pnpm install ./your-library.tgz.
  2. Include the following code in your package.json file:
{
  "pnpm": {
    "overrides": {
      "your-library": "file:./your-library.version.tgz"
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Your dependency should now be properly linked!

Comments 0 total

    Add comment