Comments (1)
Short answer: no.
Helpful answer: use nodenv-aliases plugin
Longer answer:
It is the rbenv team's belief (and nodenv's by proxy) that a version file identity a specific and unambiguous version. (see rbenv/rbenv#510 rbenv/rbenv#328 rbenv/rbenv#397 https://gist.github.com/fnichol/1912050#gistcomment-682506)
Further, the question of sharing nodenv-version files in repos is eye-brow raising. The goal of the version specifier is to be absolutely precise across all installations, dev and production. This type of precision only makes sense for apps; not libraries. Libraries should not be restricted to particular node versions for the same reason that libraries should not have shrinkwraps (and gems shouldn't have committed Gemfile.lock). Doing so implies a false sense of control that does not exist in the wild. As for apps, where one does have such control, the goal and desire is not to be ambiguous, but to be strictly precise.
So if your repos are libs, I would strongly recommend removing the node-version files from version control. If they are apps, I would strongly recommend specifying a precise node version (including patch version). If I've failed to convince you of these approaches, then the nodenv-aliases plugin is for you! :)
Caveat: We are considering adding these short-version specifiers to node-build. However, they would only be available as shortcuts for installing the latest patch (or minor) version of a particular minor (or major) release. The install process would still name the version by its full version number.
from nodenv.
Related Issues (20)
- Script to install/update nodenv on a shell (linux/mac) HOT 1
- How do things like yarn installs work within nodenv? HOT 3
- Support Corepack HOT 6
- Question: how to best run globally installed npm module? HOT 4
- Question: How would I go about removing nodenv and all node instances from a server? HOT 1
- Advice: nodejs latest release does not appear in $nodenv --list HOT 4
- strange undesired behavior when installing global dep HOT 1
- GPL License Compliance Issue HOT 2
- homebrew formula broken HOT 1
- Installing global package with yarn will not yield to a shim after rehash HOT 2
- `nodenv install` tries to use python and fails on MacOS Monterey 12.3 and later and fails HOT 6
- Support pnpm HOT 5
- In addition to .node-version, support .tool-versions and .nvmrc HOT 4
- Download fails with no error code
- No Debian / Ubuntu package available in the official repositories HOT 4
- Create Debian installation packages HOT 1
- Not respecting makefile HOT 2
- RBENV reference in the README HOT 2
- Documents HOT 1
- nodenv init creates duplicates in PATH HOT 2
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 nodenv.