Coder Social home page Coder Social logo

Comments (1)

jasonkarns avatar jasonkarns commented on July 21, 2024 11

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.