Skip to content

Latest commit

 

History

History
97 lines (72 loc) · 2.59 KB

README.md

File metadata and controls

97 lines (72 loc) · 2.59 KB

Contributors Forks Stargazers Issues


what-node-version

Script for automatically switch node versions based on the configured engine in the package.json

· Report Bug · Request Feature ·

About The Project

It tries to parse the specified engine in package.json. It used nvm to switch to the determined version.

Usage

wnv run start:dev

or evan better: with an alias

echo 'alias npm="wnv"' >> ~/.bashrc
source ~/.bashrc
npm run start:dev

Installation

brew install Beuterei/homebrew-tap/wnv

or without brew

# installs to /usr/local/bin/wnv
curl -L https://raw.githubusercontent.com/Beuterei/what-node-version/master/wnv >/usr/local/bin/wnv
chmod 0755 /usr/local/bin/wnv

Parameters

Parameter Description
-h --help Show the usage summary and exit

Force reload of node versions cache

Run command with the NO_CACHE environment variable set

NO_CACHE=1 wnv run some_command

Alias

Override the normal npm command to make it easy to use.

echo 'alias npm="wnv"' >> ~/.bashrc
source ~/.bashrc

Ignore alias

\npm run start:dev