Monday, 15 May 2017

npm registry local clone to reduce duplication of packages

I was just wondering if there exists a way such that instead of downloading the fresh npm package(s) for each new node js project, we can download regularly used packages and dev-dependencies on local machine with various versions and then utilise in node js project. In short, I would like to download npm packages for once from npm registry and save locally under file system and for any new project which requires one or more of these packages, I can refer the localfile system path and no need to download fresh package from npm registry. Main objective is to keep redundency at lowest level as possible.Any insight would be much appreciated.



via iThirst

No comments:

Post a Comment