-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider adding note for nvm
about how to use .node-version
in a compatible way with nvm
#4
Comments
Thanks for My current focus is products which support or use Related links in |
For interest, same work-around of linking mentioned here: xmldom/xmldom#52 (comment) |
That sounds fair about only focusing on products that use |
It looks like we're running tests off Node 16 in Travis, and it supports .nvmrc but not .node-version? https://docs.travis-ci.com/user/languages/javascript-with-nodejs/#specifying-nodejs-versions-using-nvmrc I don't want us to maintain two files with our node versions and I saw this issue which described a way to link the two: shadowspawn/node-version-usage#4 I tried that in this commit—let's see if Travis CI likes it!
* chore: bump node-version * deps: install ESLint, add .eslintrc * chore: fix problems in files * Create .nvmrc It looks like we're running tests off Node 16 in Travis, and it supports .nvmrc but not .node-version? https://docs.travis-ci.com/user/languages/javascript-with-nodejs/#specifying-nodejs-versions-using-nvmrc I don't want us to maintain two files with our node versions and I saw this issue which described a way to link the two: shadowspawn/node-version-usage#4 I tried that in this commit—let's see if Travis CI likes it! * chore: rename .node-version to .nvmrc Will this work? Ugh * fix: oh wait try this We have "stable" specified in our travis.yml which is obviously incorrect and was causing the issue! So let's try this again * ci: get rid of install step According to the build log [here](https://travis-ci.com/github/Twin-Cities-Mutual-Aid/twin-cities-aid-distribution-locations/builds/225513649), we're installing our deps twice! Why? * ci: add lint step before script * chore: add lint violation to confirm that it fails * revert: bring back properly linted code
Given the popularity of nvm, I'd actually support having a note explicitly indicating its lack of support for |
I'll reopen this to give it some more visibility and opportunity for feedback (👍) , since a few people have already found it since being closed. That might indicate I was correct about people finding the info, or might indicate worth documenting! 😄 |
I have added a note to README that nvm does not support |
Thanks! For reference, that was done in 714de96. |
Although
nvm
does not officially support.node-version
yet(See nodejs/version-management#13, nodejs/version-management#21), you can use a
.node-version
withnvm
like this:ln -s .node-version .nvmrc
This works because,
.nvmrc
supports the.node-version
syntax (with an without thev
prefix). So.nvmrc
is a superset of.node-version
.If one is careful to follow the
.node-version
specification here, a symbolic link from.node-version
to.nvmrc
is a good solution untilnvm
officially supports it.BTW: volta-cli/volta#983 is considering support of
.node-version
and referenced this repo.The text was updated successfully, but these errors were encountered: