All Projects → ouchxp → nodenv-nvmrc

ouchxp / nodenv-nvmrc

Licence: other
nodenv plugin that detects the node version based on .nvmrc.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to nodenv-nvmrc

Nvm
nvm is a version manager for node.js, designed to be installed per-user, and invoked per-shell. nvm works on any POSIX-compliant shell (sh, dash, ksh, zsh, bash), in particular on these platforms: unix, macOS, and windows WSL.
Stars: ✭ 53,926 (+179653.33%)
Mutual labels:  nvm, version-manager, nvmrc
Nvm Windows
A node.js version management utility for Windows. Ironically written in Go.
Stars: ✭ 18,587 (+61856.67%)
Mutual labels:  nvm, version-manager
Plugin Nvm
Node version manager wrapper for Fish shell
Stars: ✭ 173 (+476.67%)
Mutual labels:  nvm, version-manager
Zsh Nvm
Zsh plugin for installing, updating and loading nvm
Stars: ✭ 1,670 (+5466.67%)
Mutual labels:  nvm, version-manager
xxenv-latest
This **env(pyenv, rbenv, nodenv, goenv, phpenv, luaenv) plugin replaces the version specified in the argument with the latest version.
Stars: ✭ 69 (+130%)
Mutual labels:  nodenv, nodenv-plugin
zsh-lazyenv
Environments for lazy load commands and speed up start up time of zsh
Stars: ✭ 16 (-46.67%)
Mutual labels:  nvm, version-manager
Nodenv
Manage multiple NodeJS versions.
Stars: ✭ 1,687 (+5523.33%)
Mutual labels:  version-manager, nodenv
Snm
🤏 Smol Node Manager written in Rust
Stars: ✭ 24 (-20%)
Mutual labels:  nvm, version-manager
Fnm
🚀 Fast and simple Node.js version manager, built in Rust
Stars: ✭ 6,102 (+20240%)
Mutual labels:  nvm
Fish Nvm
nvm wrapper for fish-shell
Stars: ✭ 336 (+1020%)
Mutual labels:  nvm
Install nodejs and yarn homebrew
The guide for installing nvm | node | yarn via homebrew
Stars: ✭ 261 (+770%)
Mutual labels:  nvm
Nve
Run any command on specific Node.js versions
Stars: ✭ 531 (+1670%)
Mutual labels:  nvm
Dash
Scalable Hashing on Persistent Memory
Stars: ✭ 86 (+186.67%)
Mutual labels:  nvm
theme-scorphish
Compact. Sufficient. PWD, Ruby+RVM, Python+VENV, Git status, Rust, NodeJS.
Stars: ✭ 33 (+10%)
Mutual labels:  nvm
Dotfiles
What tools and plugins I use for web development?
Stars: ✭ 73 (+143.33%)
Mutual labels:  nvm
ansible-role-nvm
Ansible role for using NVM, Node Version Manager, locally.
Stars: ✭ 15 (-50%)
Mutual labels:  nvm
Ansible Role Nvm
Installs NVM & Node.js on Debian/Ubuntu and RHEL/CentOS
Stars: ✭ 52 (+73.33%)
Mutual labels:  nvm
Ssd Gpu Dma
Build userspace NVMe drivers and storage applications with CUDA support
Stars: ✭ 172 (+473.33%)
Mutual labels:  nvm
Pibench
Benchmarking framework for index structures on persistent memory
Stars: ✭ 46 (+53.33%)
Mutual labels:  nvm
awesome-env-config-cn
各种开发语言项目环境国内(中国国内加速镜像)配置教程和部分实践经验,包括github.com, nodejs,npm,nvm, yarn, java, maven, gradle, python, mysys2, elasticsearch, php,golang等等,更多正在加入中...
Stars: ✭ 50 (+66.67%)
Mutual labels:  nvm

nodenv-nvmrc

This is a plugin for nodenv that detects the node version based on the current tree's .nvmrc. .node-version files still take precedence.

When .nvmrc is configured with a range this plugin chooses the greatest installed version matching the range or exits with an error if none match.

Build Status

Installation

Installing with git

$ git clone https://github.com/ouchxp/nodenv-nvmrc.git $(nodenv root)/plugins/nodenv-nvmrc

Installing with Homebrew

Mac OS X users can install many nodenv plugins with Homebrew.

This is the recommended method of installation if you installed nodenv with Homebrew.

$ brew tap nodenv/nodenv
$ brew install nodenv-nvmrc

Usage

Once you've installed the plugin you can verify that it's working by cding into a project that has a .nvmrc file and does not have a .node-version file. From anywhere in the project's tree, run nodenv which node.

Gotcha

Due to the limitaion of nodenv's plugin system, some commands were not reading the version from .nvmrc.

  • nodenv install without version is not able to install new Node version specified in .nvmrc.
  • nodenv local without version is not able to retrieve the version specified in .nvmrc

Contributing

To run tests, install bats and nodenv, then run bats test in the base directory of this plugin

Credits

This project is heavily inspired by nodenv-package-json-engine[1].

Shell semver range support provided by sh-semver.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].