Nvm-windows: Name node installations

Created on 12 May 2017  ·  3Comments  ·  Source: coreybutler/nvm-windows

Right now the node installations are identified by their version number. This totally makes sense if the version is all you care about. But if you really want to know what is installed inside that node (via npm install -g) you have no way of knowing.

It would be great if we maybe could "name" our node installations that are shown together with the version numbers on nvm list.

enhancement request

Most helpful comment

Thanks.

As I read my own suggestion again, here is an idea for a lightweight way to implement something like that:

  • nvm annotate "contains CLI v2.3" (or similar) creates a file nvm.config in the currently used node version's folder.
  • nvm list then reads these and outputs them in the list.

That's it ;)

All 3 comments

First, I think this is a great idea. However; I think this is more of a workflow thing and I see NVM4W being more utilitarian. Implementing something like this requires metadata about each installation, which isn't a bad thing, but I think this is a "tip of the iceburg" situation with much more to it.

That said, I have been prototyping a visual desktop app for managing Node environments in my spare time. Since my time is pretty limited right now, not a lot of progress has been made. However; I do have it detecting npm modules and different versions of Node.

image

I'm also experimenting with a JSON reporting feature in NVM4W. I'm not yet sure if it really makes to have this in NVM4W or the desktop tool, but the broader point is I'm experimenting with a few different ideas around this subject.

Thanks.

As I read my own suggestion again, here is an idea for a lightweight way to implement something like that:

  • nvm annotate "contains CLI v2.3" (or similar) creates a file nvm.config in the currently used node version's folder.
  • nvm list then reads these and outputs them in the list.

That's it ;)

Noted and appreciated. I like the annotation concept.

Was this page helpful?
0 / 5 - 0 ratings