nvm-use

1.0.3 • Public • Published

Use .nvmrc on Windows

On *nix systems the Node Version Manager nvm can make use of a .nvmrc in the project folder and automatically use the appropriate version of Node.
The Windows implementation of a Node version Manager nvm-windows does not implement that functionality.

nvm-use

nvm-use is a small wrapper for nvm for use in npm scripts.

Requirements

nvm-windows must be installed for nvm-use to perform any actions. If you are running your npm script from another system nvm-use will simply exit with 0 and your npm script will continue.

Setup

Create a .nvmrc in the project root

node --version > .nvmrc

And prepend your scripts in package.json with nvm-use

{
  //...
  "scripts": {
    "start": "nvm-use && ..."
  }
  //...
}

Readme

Keywords

none

Package Sidebar

Install

npm i nvm-use

Weekly Downloads

19

Version

1.0.3

License

MIT

Unpacked Size

3.54 kB

Total Files

5

Last publish

Collaborators

  • linuselander