3 ms·
> NPM gets this right https://news.ycombinator.com/item?id=6859810 https://news.ycombinator.com/item?id=6859810
by est 13y ago
> NPM gets this right
https://news.ycombinator.com/item?id=6859810 https://news.ycombinator.com/item?id=6859810
- skrebbel 13y agoYeahyeah, NPM and its community get plenty other things wrong, but not the particular flavour of dependency hell that we're discussing here. It's all neatly there, in a local node_modules subdirectory, and assuming the modules have been properly maintained, it just works. You have to do actual effort to install an npm module globally (namely, provide a switch). The default does the sane thing.
- Anderkent 13y ago>You have to do actual effort to install an npm module globally (namely, provide a switch). The default does the sane thing. No it doesn't? You have to manually create a node_modules dir in the current directory because otherwise it'll scan up your tree for any parent dir containing node_modules, which is pretty much never what you want.
- mcantelon 13y agoThe npm registry can be replicated as CouchDB is the underlying data store. http://clock.co.uk/tech-blogs/how-to-create-a-private-npmjs-repository http://clock.co.uk/tech-blogs/how-to-create-a-private-npmjs-...