Answer the question
In order to leave comments, you need to log in
Are there any alternatives to NPM in nodejs?
Colleagues, I would like to ask you about your attitude to npm and about the methods of deployment in your project.
In our project, we initially chose several small private git repositories with modules as an organization. We expected that npm would ruin everything, because it can't be worse than composer in php. We have divided the stable and unstable versions of the modules into branches.
In the end - we stumbled upon a few fantastic jambs of how npm works, and all of them are related to the fact that it absolutely cannot work properly with dependencies in git repositories.
The option to keep our own npm repo is disheartening, hence the question. Are there any alternatives to npm?
Also, it would help a lot if you could tell me what other options there are? Would you personally benefit from a utility that is compatible with npm repositories, but normally implements work with dependencies (without crutches in the form of shrinkwrap) and git in a form suitable for use during deployment?
Answer the question
In order to leave comments, you need to log in
npm works fine with git repositories . What exactly are your problems?
When working with npm, it is recommended to commit the node_modules directory. In this way, not quite elegant way, heaps of problems with dependencies are solved. I’m also thinking about committing vendors for projects on composer, since for projects that have lived for more than a year and a half there have already been cases when there are no packages on the github, they were renamed, etc.
ps composer is cool, but it has its own problems, mostly related to php itself. Let's say I really miss the ability to use different versions of the same packages, but this is a language limitation.
pps NPM alternative is unnecessary. If you think that NPM contains a bug somewhere - ishus and pull requests. And then there will be a dozen more package managers later.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question