How do I prevent npm install from removing packages?

后端 未结 5 1240
无人及你
无人及你 2021-01-11 15:39

I\'m trying to set up a development environment with several packages, and as a result I need to manually install some dependencies. More specifically, I have some local ch

5条回答
  •  终归单人心
    2021-01-11 16:09

    If your development flow involves updating in parallel packages which depend on one another, you might consider switching your project's package manager to from npm to yarn to take advantage of yarn's workspaces feature.

    Yarns's workspaces allow you to easily setup a single monorepo containing all your interconnected dependencies, and let yarn thinking how to link them together in your dev environment.

提交回复
热议问题