|
|
|
|
|
by thom_nic
3036 days ago
|
|
The ironic part here is, part of npm's core design - installing all deps to `./node_modules` - makes it extremely easy to "build" on one machine and then zip up the whole project directory which only needs `node` to run. This is in fact way easier than options for python, ruby (and probably many others) which tend to install versioned dependencies to some shared directory and then add them to the path at runtime. So you're very right, it's trivial to not need npm at all, ever, in production. |
|
And sure, there are ways around that too, but it's not always as simple as copying and pasting the dependencies.