Skip to content

Warning: Patch file found for package X which is not present... #84

Closed
@pablopunk

Description

@pablopunk

Hi, I have a repo with patch-package working fine but when another project has that repo as a dependency, the postinstall script tries to patch the node_modules under the first repo instead of the new one. i.e:

Here it works fine:

| my-lib/
--- package.json (with postinstall)
--- patches/

Here it doesn't:

| my-project/
--- package.json (with 'my-lib' as a dependency)

npm install throws: Warning: Patch file found for package X which is not present at ~my-project/node_modules/my-lib/node_modules/X which makes sense because it's not there, it's under ~/my-project/node_modules/X

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions