Sunday 19 May 2019

How to share node_modules between some projects

Hi,​I have some node projects to build which take some time in building processes. I want to speed up building time. To this objective, I want to share the node_modules folder between these projects. I want to configure npm to check the shared folder first when npm install command kicked, then take packages locally if they are already installed in the shared folder. I want npm to download packages only if they are not in the shared folder. I found prefix config in npm manual, but this item works only for the global install folder. Is there any config for my objective? Please.

Submitted May 20, 2019 at 03:22AM by hoge2

No comments:

Post a Comment