Recommended way to break the hard links so that I can modify packages locally for debugging? #7588
Unanswered
SystemParadox
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sometimes I need to mess around with a package inside
node_modules
for debugging purposes. Often this is just to add more logging, but sometimes it's more than that.However, because of the hard links created by pnpm these changes leak to any other project that's using that particular module+version which is obviously really bad.
What is the recommended way to deal with this situation?
I think the answer is to set
package-import-method=copy
in.npmrc
but unfortunately if it's already been installed withhardlink
thenpnpm i
doesn't unlink this, you have torm -rf node_modules; pnpm i
to update it.Is there a better way?
(filesystem is ext4 btw so no clone support)
Beta Was this translation helpful? Give feedback.
All reactions