Comments (16)
I'm not quite comfortable with that level of a breaking change just yet; but perhaps I could also add an env var that sets that value, so it's easy to set your own default?
from nvm.
No, because that's a function of time, and that's not something I want nvm's output to depend on.
from nvm.
Hmm, even if the content of https://nodejs.org/dist/index.tab is also somehow a function of time?
from nvm.
It's not in the sense that nvm doesn't need to know the current date/time.
from nvm.
TBH I don't see why we cannot put it behind a flag such as --supported
, meanwhile maintain the existing behaviour as default?
from nvm.
Of course we could. However, I don't think it would be a good idea to have anything depend on "the current date", and, if there were any way for a project's preferred node version to change based on the passage of time, then it would be possible for nvm use
inside a project to work one day, and stop working the next, which would be both unacceptable and violate semver.
from nvm.
for a project's preferred node version to change based on the passage of time
Hmm, here the request is only about nvm ls-remote
, with no involvement with nvm use
at all.
from nvm.
That affects nvm install
as well, though.
from nvm.
That affects
nvm install
as well, though.
Maybe not if it's an option only for nvm ls-remote
?
I guess this request would be more appealing back when nvm_print_versions
was quite slow before it was reimplemented using awk.
Nowadays it's pretty fast. But in the context of using nvm ls-remote
to check for newer versions, the no longer supported versions are NOT going to get new versions at all, that's where this option can be useful, by making the output less cluttered.
from nvm.
Is your motivation to hasten/shorten the response of nvm ls-remote
? That's very different from the OP :-)
from nvm.
Is your motivation to hasten/shorten the response of nvm ls-remote?
Well yes, that's it.
BTW, and which OP? I guess I'm a bit confused.
from nvm.
I meant your original post.
from nvm.
Ahh, I was actually thinking the same, maybe my OP should have been more concise :-)
from nvm.
Would a --min=18
, for example, suffice here? basically it'd all work the same except it would omit displaying anything before v18 (and i'd optimize to skip contacting iojs.org entirely when the version was >= 4, etc)
from nvm.
Would a
--min=18
, for example, suffice here?
Yes, that also works! And it has the advantage of being more flexible.
Maybe we can even have it as the default? So that in the most common use case we save several keystrokes for all the users :-) Meanwhile those who want the old behavior can use --min=0
.
from nvm.
add an env var that sets that value, so it's easy to set your own default?
That would be really great! Much appreciated 👍
from nvm.
Related Issues (20)
- Please support powershell on Linux HOT 1
- I met a problem: curl:(7) Failed to connect to raw.githubusercontent.com port 443 after 9 ms: Connection refused HOT 6
- nvm ls hangs at time or gets into a weird state HOT 16
- macOS 14.2 HOT 1
- [spam]
- [spam]
- CentOS 7 missing some lib64 required by node HOT 1
- support .node-version HOT 1
- nvm current always return system instead of default HOT 1
- Current nvm install methods for linux and mac are falling far from security best practice HOT 7
- nvm ls-remote returns N/A HOT 2
- rm doesn't remove the directory via the environmental variable HOT 2
- not able to install node 14 with nvm HOT 17
- [spam] HOT 1
- wrong nvm repo -close
- Slow Terminal Startup on Mac OS Due to nvm Usage HOT 2
- Can't install LTS node 14 with Python 3.11 HOT 1
- nvm install-latest-npm does not install the latest version HOT 1
- [spam]
- Can't update nvm 0.35.3 to 0.39.7 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvm.