nvs icon indicating copy to clipboard operation
nvs copied to clipboard

Standard .node-version file format under discussion?

Open brody4hire opened this issue 7 years ago • 3 comments

Discussion in https://github.com/nodejs/version-management/issues/13

I hope nvs will work with standard Node files since it is the only Node version manager I know of that is truly cross-platform.

P.S. Yes it is possible to use other version managers such as nvm on Windows with the whole Bash thing, not sure if it would be really suitable for all users.

brody4hire avatar Jan 05 '18 19:01 brody4hire

Yes, I'm monitoring that discussion.

nvs already supports a .node-version file containing a simple version. (It also supports aliases and other ways of specifying partial or full versions.)

If and when a consensus is reached, it should be easy to update nvs to support it.

jasongin avatar Jan 05 '18 19:01 jasongin

nvs already supports a .node-version file containing a simple version.

I see it now in README.md, thanks. Too bad this is not available in the Windows command prompt, suspecting this would not work in cmder. Maybe I can take a look at this one, someday:)

(It also supports aliases and other ways of specifying partial or full versions.)

Sounds nice!

brody4hire avatar Jan 05 '18 19:01 brody4hire

The Windows command prompt just doesn't have any way to hook into directory changes, as far as I know. For Windows development, I'd strongly recommend learning and using PowerShell anyway.

Note nvs use with no version will also try to get the version from a .node-version file in the current or parent directory.

jasongin avatar Jan 05 '18 20:01 jasongin