javascript - npm nested dependencies, why not imitate gem? -
i installing today sails.js, , see how install same package on , on again (dependencies of app dependency), why npm not use gem system? keep globally libraries , different versions, cool share same lib if have multiple projects on server , not installing on , on again same libs (i know workaround npm link seems not considered best practice).
dependency management difficult. npm strong opinionated not sharing packages , insisting every package have own node_modules folder. avoids lot of potential pitfalls can avoided. packages pretty small , better use tiny bit more disk space try chase down issues related dependency versioning.
also interesting, take note of when include node_modules in git. http://www.futurealoof.com/posts/nodemodules-in-git.html
Comments
Post a Comment