Close this up if you feel like I am trolling (which I am) :) No offence taken and I apologize! Just thought that given the cutting edge nature of bioinformatics, you may want to help think of ways to push the boundaries of how we use Node.js :)
There is not an easy alternative to NPM as of yet, but the idea is the main point. Why not just source a package from where ever you please? Instead of a "node_modules" folder at the root, offer a "modules" folder instead. NPM ends up limiting the names people can use and could be described as a cumbersome process. Just about every NPM package is a GitHub repo anyway, why not cut out the middle man.
It would be amazing if there was a simple schema that allowed you to source packages from Git over ssh, http servers and local file systems. To follow the UNIX philosophy well there is likely a few separate projects would have to spin out of the idea. I just feel that eventually NPM has to go, or any body which claims an amount authority as to what stays and goes.
For inspiration there are these projects...
https://github.com/duojs/duo (this is really focused on the browser, but the core idea is key)
The text was updated successfully, but these errors were encountered:
have a look at #9 .
NPM supports that.
NPM packages work with github repos, however
Why? One could say the same about PyPy or RubyGems
They both depend on npm for their installation ;-)
Start learning about NPM. NPM is awesome ;-)
No one is really "controlling" what goes on NPM, so you can just put whatever you want. I don't think fragmentation in package managers is a good thing (see Python). Ideally, you want a package manager that is really good like NPM to have everything there in order to increase reusability. Among other things, NPM solves semantic versioning so that we can rely on other people's code without worrying that they might rewrite the code and not update the version number (something that might happen if we use GitHub directly).
If you run out of names on NPM, no one is stopping you from mirroring GitHub and naming your modules "username-modulename".
If I haven't convinced you yet, I think the following illustration will make my case much stronger:
I feel like I'm getting a bite here, so I'm gonna get into this :) I would have made all the same points a week ago, but I have been converted!
If the main point of #9 was to decide whether or not to use AMD... don't do it! Browserify has caught on so quickly because people just get it. It also proves that you can do a lot of great stuff using
Totally. They know it's right deep down inside ;)
Philosophically, yeah they should adapt. I mean they could be informative catalogs that keep things close to a topic (ie. language), but ultimately they should just point you to a Git repo to get stuff. They can even all have handy command line tools that make life easy and do stuff for you.
I would say that your example is not quite there, but maybe there just isn't many examples these days. I think dealing with binaries is a bit of a thing of the past. Plus you could have a post fetch hook that does some work to convert Coffee to JS.
True until something else comes along :)
I whole heartedly agree with what your are saying, but isn't that what GitHub is? A place where all the open-source sits and gets worked on each day.
The tag of a git reference makes this process pretty simple as well.
True. It is still sad though... not being allowed to call it what you wanted to call it. Always seeing it named everywhere as "COULDHAVEBEEN-PERFECT". If you ever wanted to to transfer it to someone else you then have a debacle.
I love the idea and what it means! BUT... why HAVE to run a command argument to install something? Why not just go get it when you need it? Why not be able to just "require" from anywhere? Why can't it come from Git, your local files or an http server? I know this involves a bunch of new tools and some rethinking, but it would be sweet!
I dunno. I just struggle to see how any component to any greater system needs to be much more than a Git Repo with a file that describes what to do with it when installing. I'm not saying that GitHub is king, but the patterns of Git are... and here to stay. GitHub just happens to be the company that most capitalized from it.
I'm not really expecting to convince you! Though, I still have not be drawn to your side, haha! Yes NPM is just fine and dandy, it's just not perfect. Thanks for being good about my trolling and putting some quality thought into your replies... I got a lot of good thinking out of it. I just feel that if any community is going to move away from Old School ways it has got to be the Node community!
I will let you do the honours of closing this issue. I hope that I have not annoyed you to much :p
@howardroark also check this answer on another thread, in particular the part where he mentions how a game project got screwed because the Go language package manager fetches directly from version control systems and thus doesn't host a copy of the dependency, which makes it vulnerable to changes. That is why we shouldn't just rely on Git/GitHub.