Skip to content

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

License

Notifications You must be signed in to change notification settings

Beuterei/what-node-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages