npm should not forcibly replaces symlinked node_modules #571
-
This behavior is introduced between npm 7.15 and 7.21. The new If this breaking change is intended, it should be introduced with a major version upgrade, shouldn’t it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
if you think the npm CLI has introduced an unexpected breaking change you should open an issue reporting a bug at https://github.com/npm/cli |
Beta Was this translation helpful? Give feedback.
-
This is not a new issue, this issue has plagued us since the beginning of (npm's) time. This is what I always have to currently do to mitigate the issue when not using a tool like Lerna:
It is really painful. But luckily there are tools that help with this. With Lerna, my process is:
With the new npm 7 workspaces, using
and maybe there's no need to delete I've reported this bug in multiple issue trackers that I think the team even claimed that npm 7 would finally get rid of this problem back in one of those trackers, and if they did, then this is a regression, but I haven't verified this either. I just use the above steps knowing it always works. |
Beta Was this translation helpful? Give feedback.
if you think the npm CLI has introduced an unexpected breaking change you should open an issue reporting a bug at https://github.com/npm/cli