|
|
|
|
|
by allover
3336 days ago
|
|
Well no, installing 2 packages, one after the other from the command-line (as in that issue) is not the way you 'share builds' with npm. You do that via a package.json + 'npm shrinkwrap' "lockfile". Shrinkwrap does have known issues (mainly w.r.t. platform-specific modules and verbosity), though I've never had any problems with it, but if you want a better lockfile I suggest the Yarn client. (Believe Python's pip behaves similarly to npm in that issue). I prefer Yarn's lockfile handling, but saying npm is 'broken by design' is wrong. |
|
And yes, Yarn is the sane option for package management for Node. Why isn't it the default one yet?