nodejs / version-management

Discussion Group for Version Management
MIT License
42 stars 14 forks source link

What constitutes an environment? #19

Open marcelklehr opened 6 years ago

marcelklehr commented 6 years ago

In an effort to sort out some preliminaries for #3, I suggest to think about what we need to store in the file system, i.e. what is part of an environment.

IMO, we should have separately installable/manageable blobs/containers/envirnments that contain and tie together

Should this buffet of node environements be accessible globally? Where would the best place be for this buffet to live in the file system? Would it maybe be more beneficial to store npm separately to allow separate management and thus rapid switching of it?

ljharb commented 6 years ago

npm is a global modules installed in a node version; i think it's probably useful for a version manager to be able to set that up for a given node version, but there's only one global npm for a given node version.

Separately, global modules are by necessity distinct per node version, and must never be shared across them. A choice of node version (including JS engine and architecture) immediately provides a single place where all global modules, including npm, live.